Pcap Replay Utility - Metasploit
This page contains detailed information about how to use the auxiliary/spoof/replay/pcap_replay metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Pcap Replay Utility
Module: auxiliary/spoof/replay/pcap_replay
Source code: modules/auxiliary/spoof/replay/pcap_replay.rb
Disclosure date: -
Last modification time: 2017-07-24 06:26:21 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): -
List of CVEs: -
Replay a pcap capture file
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
msf > use auxiliary/spoof/replay/pcap_replay
msf auxiliary(pcap_replay) > show targets
... a list of targets ...
msf auxiliary(pcap_replay) > set TARGET target-id
msf auxiliary(pcap_replay) > show options
... show and set options ...
msf auxiliary(pcap_replay) > exploit
Required Options
- FILENAME: The local pcap file to process
Go back to menu.
Msfconsole Usage
Here is how the spoof/replay/pcap_replay auxiliary module looks in the msfconsole:
msf6 > use auxiliary/spoof/replay/pcap_replay
msf6 auxiliary(spoof/replay/pcap_replay) > show info
Name: Pcap Replay Utility
Module: auxiliary/spoof/replay/pcap_replay
License: Metasploit Framework License (BSD)
Rank: Normal
Provided by:
amaloteaux <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
DELAY 0 yes the delay in millisecond between each loop
FILENAME yes The local pcap file to process
FILE_FILTER no The filter string to apply on the file
INTERFACE no The name of the interface
LOOP 1 yes The number of times to loop through the file
PKT_DELAY 0 yes the delay in millisecond between each packet
Description:
Replay a pcap capture file
Module Options
This is a complete list of options available in the spoof/replay/pcap_replay auxiliary module:
msf6 auxiliary(spoof/replay/pcap_replay) > show options
Module options (auxiliary/spoof/replay/pcap_replay):
Name Current Setting Required Description
---- --------------- -------- -----------
DELAY 0 yes the delay in millisecond between each loop
FILENAME yes The local pcap file to process
FILE_FILTER no The filter string to apply on the file
INTERFACE no The name of the interface
LOOP 1 yes The number of times to loop through the file
PKT_DELAY 0 yes the delay in millisecond between each packet
Advanced Options
Here is a complete list of advanced options supported by the spoof/replay/pcap_replay auxiliary module:
msf6 auxiliary(spoof/replay/pcap_replay) > show advanced
Module advanced options (auxiliary/spoof/replay/pcap_replay):
Name Current Setting Required Description
---- --------------- -------- -----------
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Auxiliary Actions
This is a list of all auxiliary actions that the spoof/replay/pcap_replay module can do:
msf6 auxiliary(spoof/replay/pcap_replay) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the spoof/replay/pcap_replay auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(spoof/replay/pcap_replay) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Error Messages
This module may fail with the following error messages:
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
Pcap File does not exist
Here is a relevant code snippet related to the "Pcap File does not exist" error message:
36: file_filter = datastore['FILE_FILTER']
37: filename = datastore['FILENAME']
38: verbose = datastore['VERBOSE']
39: count = 0
40: unless File.exist? filename and File.file? filename
41: print_error("Pcap File does not exist")
42: return
43: end
44: open_pcap
45: print_status("Sending file...") unless verbose
46: while (loop > 0 or infinity) do
Go back to menu.
Related Pull Requests
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6795 Merged Pull Request: File.exists? must die
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #5556 Merged Pull Request: Inconstancy - If datastore['VERBOSE'] vs vprint
- #4317 Merged Pull Request: Proposed fix for #4305
- #4311 Merged Pull Request: Remove NETMASK option from Capture, fixing functionality on networks with a netmask other than /24
- #2525 Merged Pull Request: Change module boilerplate
- #1228 Merged Pull Request: MSFTIDY cleanup #1 - auxiliary
- #674 Merged Pull Request: Comply with msftidy
Go back to menu.
See Also
Check also the following modules related to this module:
- auxiliary/admin/netbios/netbios_spoof
- auxiliary/server/dns/spoofhelper
- auxiliary/server/netbios_spoof_nat
- auxiliary/spoof/arp/arp_poisoning
- auxiliary/spoof/cisco/cdp
- auxiliary/spoof/cisco/dtp
- auxiliary/spoof/dns/bailiwicked_domain
- auxiliary/spoof/dns/bailiwicked_host
- auxiliary/spoof/dns/compare_results
- auxiliary/spoof/dns/native_spoofer
- auxiliary/spoof/llmnr/llmnr_response
- auxiliary/spoof/mdns/mdns_response
- auxiliary/spoof/nbns/nbns_response
- auxiliary/voip/sip_invite_spoof
- exploit/windows/fileformat/winrar_name_spoofing
- post/linux/manage/dns_spoofing
- post/osx/gather/password_prompt_spoof
- auxiliary/scanner/pcanywhere/pcanywhere_login
- auxiliary/scanner/pcanywhere/pcanywhere_tcp
- auxiliary/scanner/discovery/empty_udp
- auxiliary/scanner/discovery/udp_probe
- auxiliary/scanner/discovery/udp_sweep
- auxiliary/scanner/jenkins/jenkins_udp_broadcast_enum
- auxiliary/scanner/memcached/memcached_udp_version
- auxiliary/scanner/motorola/timbuktu_udp
- auxiliary/scanner/udp/udp_amplification
- exploit/linux/misc/netcore_udp_53413_backdoor
- exploit/windows/brightstor/discovery_udp
- exploit/windows/license/sentinel_lm7_udp
- payload/cmd/unix/bind_socat_udp
- payload/cmd/unix/reverse_bash_udp
- payload/cmd/unix/reverse_socat_udp
- payload/python/shell_reverse_udp
- payload/windows/shell/reverse_udp
- payload/windows/upexec/reverse_udp
- exploit/windows/fileformat/mjm_coreplayer2011_s3m
- post/multi/escalate/metasploit_pcaplog
- post/windows/manage/rpcapd_start
Authors
amaloteaux
Version
This page has been produced using Metasploit Framework version 6.1.27-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.