mirror of
https://github.com/nmap/nmap.git
synced 2026-06-09 17:22:26 +00:00
Added check to p2p-conficker to prevent it from running against ipv6.
This commit is contained in:
parent
106c529dd6
commit
8fdda62255
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue