1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 20:39:02 +00:00

Fix portrule of dns-client-subnet-scan.

By Daniel Miller. http://seclists.org/nmap-dev/2012/q2/530.
This commit is contained in:
david
2012-05-29 21:05:39 +00:00
parent 587cc517c3
commit 37262e9232

View File

@@ -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