Check the icmp echo ID
git-svn-id: file:///home/svn/framework3/trunk@7308 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
670ee7c238
commit
f89085fd20
|
@ -73,6 +73,9 @@ class Metasploit3 < Msf::Auxiliary
|
|||
case ip.protocol
|
||||
when 1
|
||||
icmp = Racket::ICMP.new(ip.payload)
|
||||
if(icmp.id != datastore['ECHOID'].to_i)
|
||||
return
|
||||
end
|
||||
reply = {:raw => r, :eth => eth, :ip => ip, :icmp => icmp}
|
||||
reply[:type] = :icmp
|
||||
reply[:internal] = Rex::Socket.addr_ntoa(icmp.payload[0,4])
|
||||
|
|
Loading…
Reference in New Issue