From 8fdda62255298b3a83dfc6da56c8bb0a42dc64ac Mon Sep 17 00:00:00 2001 From: patrik Date: Mon, 11 Jun 2012 14:38:57 +0000 Subject: [PATCH] Added check to p2p-conficker to prevent it from running against ipv6. --- scripts/p2p-conficker.nse | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/p2p-conficker.nse b/scripts/p2p-conficker.nse index 2536bc6f9..cbfae58dd 100644 --- a/scripts/p2p-conficker.nse +++ b/scripts/p2p-conficker.nse @@ -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