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

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

#cmd_sniffer_release(*args) ⇒ Object

[View source] [View on GitHub]

125
126
127
128
129
130
131
132
133
134
135
136
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/sniffer.rb', line 125

def cmd_sniffer_release(*args)
  intf = args[0].to_i
  if (intf == 0)
    print_error("Usage: sniffer_release [interface-id]")
    return
  end

  res = client.sniffer.capture_release(intf)
  print_status("Flushed #{res[:packets]} packets (#{res[:bytes]} bytes) from interface #{intf}")

  return true
end