Method: Rex::Post::Meterpreter::Ui::Console::CommandDispatcher::Sniffer#commands

Defined in:
lib/rex/post/meterpreter/ui/console/command_dispatcher/sniffer.rb

#commandsObject

List of supported commands.

[View source] [View on GitHub]

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/sniffer.rb', line 32

def commands
  {
    'sniffer_interfaces' => 'Enumerate all sniffable network interfaces',
    'sniffer_start'      => 'Start packet capture on a specific interface',
    'sniffer_stop'       => 'Stop packet capture on a specific interface',
    'sniffer_stats'      => 'View statistics of an active capture',
    'sniffer_dump'       => 'Retrieve captured packet data to PCAP file',
    'sniffer_release'    => 'Free captured packets on a specific interface instead of downloading them',
  }

  #reqs = {
  #  'sniffer_interfaces' => [COMMAND_ID_SNIFFER_INTERFACES],
  #  'sniffer_start'      => [COMMAND_ID_SNIFFER_CAPTURE_START],
  #  'sniffer_stop'       => [COMMAND_ID_SNIFFER_CAPTURE_STOP],
  #  'sniffer_stats'      => [COMMAND_ID_SNIFFER_CAPTURE_STATS],
  #  'sniffer_dump'       => [COMMAND_ID_SNIFFER_CAPTURE_DUMP],
  #  'sniffer_release'    => [COMMAND_ID_SNIFFER_CAPTURE_RELEASE],
  #}

  #filter_commands(all, reqs)
end