Method: Rex::Post::Meterpreter::Ui::Console::CommandDispatcher::Sniffer#cmd_sniffer_stats
- Defined in:
- lib/rex/post/meterpreter/ui/console/command_dispatcher/sniffer.rb
permalink #cmd_sniffer_stats(*args) ⇒ Object
[View source] [View on GitHub]
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/sniffer.rb', line 109 def cmd_sniffer_stats(*args) intf = args[0].to_i if (intf == 0) print_error("Usage: sniffer_stats [interface-id]") return end stats = client.sniffer.capture_stats(intf) print_status("Capture statistics for interface #{intf}") stats.each_key do |k| print_line("\t#{k}: #{stats[k]}") end return true end |