81
82
83
84
85
86
87
88
89
90
91
92
93
|
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/sniffer.rb', line 81
def cmd_sniffer_start(*args)
intf = args.shift.to_i
if (intf == 0)
print_error("Usage: sniffer_start [interface-id] [packet-buffer (1-200000)] [bpf filter (posix meterpreter only)]")
return
end
maxp = (args.shift || 50000).to_i
bpf = args.join(" ")
client.sniffer.capture_start(intf, maxp, bpf)
print_status("Capture started on interface #{intf} (#{maxp} packet buffer)")
return true
end
|