mirror of
https://github.com/nmap/nmap.git
synced 2026-02-12 08:26:33 +00:00
o [NSE] Fixed some portrules that used shortport functions incorrectly
and always returned true in dns-zone-transfer and ftp-proftpd-backdoor. [Jost Krieger]
This commit is contained in:
@@ -112,7 +112,7 @@ prerule = function()
|
||||
end
|
||||
|
||||
portrule = function(host, port)
|
||||
if shortport.portnumber(53, 'tcp') then
|
||||
if shortport.portnumber(53, 'tcp')(host, port) then
|
||||
dns_opts.domain, dns_opts.addall = stdnse.get_script_args(
|
||||
{"dns-zone-transfer.domain", "dnszonetransfer.domain"},
|
||||
{"dns-zone-transfer.addall","dnszonetransfer.addall"}
|
||||
|
||||
@@ -43,7 +43,7 @@ portrule = function (host, port)
|
||||
return false
|
||||
end
|
||||
|
||||
return shortport.port_or_service(21, "ftp")
|
||||
return shortport.port_or_service(21, "ftp")(host, port)
|
||||
end
|
||||
|
||||
action = function(host, port)
|
||||
|
||||
Reference in New Issue
Block a user