mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 13:09:02 +00:00
dns-zone-transfer.nse now accepts new syntax argument table
comments updated
This commit is contained in:
@@ -46,7 +46,7 @@ Useful resources
|
|||||||
-- |_ foo.com. SOA ns2.foo.com. piou.foo.com.
|
-- |_ foo.com. SOA ns2.foo.com. piou.foo.com.
|
||||||
-- @usage
|
-- @usage
|
||||||
-- nmap --script dns-zone-transfer.nse \
|
-- nmap --script dns-zone-transfer.nse \
|
||||||
-- --script-args 'dnszonetransfer={domain=<domain>}'
|
-- --script-args dnszonetransfer.domain=<domain>
|
||||||
|
|
||||||
require('shortport')
|
require('shortport')
|
||||||
require('strbuf')
|
require('strbuf')
|
||||||
@@ -311,6 +311,8 @@ action = function(host, port)
|
|||||||
|
|
||||||
if args.dnszonetransfer and args.dnszonetransfer.domain then
|
if args.dnszonetransfer and args.dnszonetransfer.domain then
|
||||||
domain = args.dnszonetransfer.domain
|
domain = args.dnszonetransfer.domain
|
||||||
|
elseif args['dnszonetransfer.domain'] then
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user