1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 17:59:04 +00:00

Rename the script arg table owned by dns-zone-transfer.nse from zoneTrans to

dnszonetransfer.
This commit is contained in:
david
2008-11-11 00:19:51 +00:00
parent d293dec977
commit cb998f9af0

View File

@@ -4,7 +4,7 @@ Requests a zone transfer (AXFR) from a DNS server.
The script sends an AXFR query to a DNS server. The domain to query is The script sends an AXFR query to a DNS server. The domain to query is
determined by examining the name given on the command line, the DNS determined by examining the name given on the command line, the DNS
server's hostname, or it can be specified with the server's hostname, or it can be specified with the
<code>zoneTrans.domain</code> script argument. If the query is <code>dnszonetransfer.domain</code> script argument. If the query is
successful all domains and domain types are returned along with common successful all domains and domain types are returned along with common
type specific data (SOA/MX/NS/PTR/A). type specific data (SOA/MX/NS/PTR/A).
@@ -17,7 +17,7 @@ Useful resources
]] ]]
--- ---
-- @args zoneTrans.domain Domain to transfer. -- @args dnszonetransfer.domain Domain to transfer.
-- @output -- @output
-- 53/tcp open domain -- 53/tcp open domain
-- | dns-zone-transfer: -- | dns-zone-transfer:
@@ -44,6 +44,8 @@ Useful resources
-- | votetrust.foo.com. CNAME -- | votetrust.foo.com. CNAME
-- | www.foo.com. CNAME -- | www.foo.com. CNAME
-- |_ foo.com. SOA ns2.foo.com. piou.foo.com. -- |_ foo.com. SOA ns2.foo.com. piou.foo.com.
-- @usage
-- nmap --script dns-zone-transfer.nse --script-args 'dnszonetransfer={domain=<domain>}'
require('shortport') require('shortport')
require('strbuf') require('strbuf')
@@ -309,8 +311,8 @@ action = function(host, port)
local domain = nil local domain = nil
local args = nmap.registry.args local args = nmap.registry.args
if args.zoneTrans and args.zoneTrans.domain then if args.dnszonetransfer and args.dnszonetransfer.domain then
domain = args.zoneTrans.domain domain = args.dnszonetransfer.domain
elseif args.domain then elseif args.domain then
domain = args.domain domain = args.domain
elseif host.targetname then elseif host.targetname then