From 37262e9232aa5afd358d800b85667a93b8e37bd1 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 29 May 2012 21:05:39 +0000 Subject: [PATCH] Fix portrule of dns-client-subnet-scan. By Daniel Miller. http://seclists.org/nmap-dev/2012/q2/530. --- scripts/dns-client-subnet-scan.nse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dns-client-subnet-scan.nse b/scripts/dns-client-subnet-scan.nse index 4d92096f4..922fab335 100644 --- a/scripts/dns-client-subnet-scan.nse +++ b/scripts/dns-client-subnet-scan.nse @@ -64,11 +64,11 @@ prerule = function() return true end -portrule = function() +portrule = function(host, port) if ( nmap.address_family() ~= "inet" ) then return false else - return shortport.port_or_service(53, "domain", {"tcp", "udp"}) + return shortport.port_or_service(53, "domain", {"tcp", "udp"})(host, port) end end