Support non-default interfaces for idle scan host detection

git-svn-id: file:///home/svn/framework3/trunk@7623 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-11-26 04:14:16 +00:00
parent 3412a38146
commit 7324108c14
1 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,8 @@ class Metasploit3 < Msf::Auxiliary
register_options([
Opt::RPORT(80),
OptInt.new('TIMEOUT', [true, "The reply read timeout in milliseconds", 500])
OptInt.new('TIMEOUT', [true, "The reply read timeout in milliseconds", 500]),
OptString.new('INTERFACE', [false, 'The name of the interface'])
])
register_advanced_options([
@ -67,7 +68,7 @@ class Metasploit3 < Msf::Auxiliary
socket = connect_ip(false)
return if not socket
pcap = ::Pcap.open_live(::Pcap.lookupdev, 68, false, 1)
pcap = ::Pcap.open_live(datastore['INTERFACE'] || ::Pcap.lookupdev, 68, false, 1)
shost = Rex::Socket.source_address(ip)