1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

dns-zone-transfer.nse now accepts new syntax argument table

comments updated
This commit is contained in:
joao
2009-07-05 10:01:10 +00:00
parent bfa10a3499
commit 52bb4f7cd0

View File

@@ -46,7 +46,7 @@ Useful resources
-- |_ foo.com. SOA ns2.foo.com. piou.foo.com.
-- @usage
-- nmap --script dns-zone-transfer.nse \
-- --script-args 'dnszonetransfer={domain=<domain>}'
-- --script-args dnszonetransfer.domain=<domain>
require('shortport')
require('strbuf')
@@ -311,6 +311,8 @@ action = function(host, port)
if args.dnszonetransfer and args.dnszonetransfer.domain then
domain = args.dnszonetransfer.domain
elseif args['dnszonetransfer.domain'] then
domain = args['dnszonetransfer.domain']
elseif args.domain then
domain = args.domain
elseif host.targetname then