mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
dns-zone-transfer.nse now accepts new syntax argument table
comments updated
This commit is contained in:
parent
bfa10a3499
commit
52bb4f7cd0
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue