Check the icmp echo ID

git-svn-id: file:///home/svn/framework3/trunk@7308 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-10-30 16:50:45 +00:00
parent 670ee7c238
commit f89085fd20
1 changed files with 3 additions and 0 deletions

View File

@ -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])