mirror of
https://github.com/nmap/nmap.git
synced 2026-01-03 05:09:14 +00:00
Added check to p2p-conficker to prevent it from running against ipv6.
This commit is contained in:
@@ -102,6 +102,9 @@ local mode_flags =
|
||||
|
||||
---For a hostrule, simply use the 'smb' ports as an indicator, unless the user overrides it
|
||||
hostrule = function(host)
|
||||
if ( nmap.address_family() ~= 'inet' ) then
|
||||
return false
|
||||
end
|
||||
if(smb.get_port(host) ~= nil) then
|
||||
return true
|
||||
elseif(nmap.registry.args.checkall == "true" or nmap.registry.args.checkall == "1") then
|
||||
|
||||
Reference in New Issue
Block a user