mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Fixed a bug reported by Josh Greenwood that would incorrectly detect a host having IP
forwarding enabled if the scanned host was the same as the probe target.
This commit is contained in:
parent
9dbfcba8d2
commit
cec2dd7816
1 changed files with 4 additions and 0 deletions
|
|
@ -101,6 +101,10 @@ action = function(host)
|
|||
target = arg_target
|
||||
end
|
||||
|
||||
if ( target == host.ip ) then
|
||||
return ("\n ERROR: Target can not be the same as the scanned host")
|
||||
end
|
||||
|
||||
if (icmpEchoRequest(ifname, host, target)) then
|
||||
return ("\n The host has ip forwarding enabled, tried ping against (%s)"):format(arg_target)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue