1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 06:59: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:
david
2011-02-04 08:46:14 +00:00
parent 740318cee9
commit 31935a45d4
3 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,9 @@
# Nmap Changelog ($Id$); -*-text-*- # 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] Added support for prerule and postrule scripts. [David]
o [Ndiff] Fixed ndiff.dtd to include two elements that can be diffed: o [Ndiff] Fixed ndiff.dtd to include two elements that can be diffed:

View File

@@ -112,7 +112,7 @@ prerule = function()
end end
portrule = function(host, port) 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_opts.domain, dns_opts.addall = stdnse.get_script_args(
{"dns-zone-transfer.domain", "dnszonetransfer.domain"}, {"dns-zone-transfer.domain", "dnszonetransfer.domain"},
{"dns-zone-transfer.addall","dnszonetransfer.addall"} {"dns-zone-transfer.addall","dnszonetransfer.addall"}

View File

@@ -43,7 +43,7 @@ portrule = function (host, port)
return false return false
end end
return shortport.port_or_service(21, "ftp") return shortport.port_or_service(21, "ftp")(host, port)
end end
action = function(host, port) action = function(host, port)