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:

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.


Go back to menu.

See Also


Check also the following modules related to this module:

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.