From 3b11c8696f1f4e46b56a1dee3b33f5666b59a85d Mon Sep 17 00:00:00 2001 From: ron Date: Tue, 21 Apr 2009 19:40:08 +0000 Subject: [PATCH] Fixed a small bug that caused 'checkall' to not actually check all --- scripts/p2p-conficker.nse | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/p2p-conficker.nse b/scripts/p2p-conficker.nse index 437750108..110cb6020 100644 --- a/scripts/p2p-conficker.nse +++ b/scripts/p2p-conficker.nse @@ -545,17 +545,23 @@ local function go(host) if(not(is_blacklisted_port(i))) then local tcp = nmap.get_port_state(host, {number=i, protocol="tcp"}) if(tcp ~= nil and tcp.state == "open") then - tcp_ports[i] = "true" + tcp_ports[i] = true end local udp = nmap.get_port_state(host, {number=i, protocol="udp"}) if(udp ~= nil and (udp.state == "open" or udp.state == "open|filtered")) then - udp_ports[i] = "true" + udp_ports[i] = true end end + + if((i % 10) == 0) then + io.write(i .. "\n") + end end end +io.write("AAAAAAAAAAAAAAAAAA\n\n\n") + -- Generate ports based on the ip and time local seed = math.floor((os.time() - 345600) / 604800) local ip = host.ip