mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
587cc517c3
commit
37262e9232
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue