mirror of
https://github.com/nmap/nmap.git
synced 2025-12-20 22:49:01 +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:
@@ -1,5 +1,9 @@
|
||||
# Nmap Changelog ($Id$); -*-text-*-
|
||||
|
||||
o [NSE] Fixed some portrules that used shortport functions incorrectly
|
||||
and always returned true in dns-zone-transfer and
|
||||
ftp-proftpd-backdoor. [Jost Krieger]
|
||||
|
||||
o [Ndiff] Added support for prerule and postrule scripts. [David]
|
||||
|
||||
o [Ndiff] Fixed ndiff.dtd to include two elements that can be diffed:
|
||||
|
||||
@@ -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