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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user