mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +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:
parent
740318cee9
commit
31935a45d4
3 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue