mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 04:39:03 +00:00
Fixed bug that would make the script crash if no domain argument was specified.
This commit is contained in:
@@ -58,11 +58,11 @@ require 'dns'
|
|||||||
require 'tab'
|
require 'tab'
|
||||||
require 'target'
|
require 'target'
|
||||||
|
|
||||||
prerule = function() return true end
|
|
||||||
|
|
||||||
local arg_domain = stdnse.get_script_args(SCRIPT_NAME .. ".domain")
|
local arg_domain = stdnse.get_script_args(SCRIPT_NAME .. ".domain")
|
||||||
local arg_filter = stdnse.get_script_args(SCRIPT_NAME .. ".filter")
|
local arg_filter = stdnse.get_script_args(SCRIPT_NAME .. ".filter")
|
||||||
|
|
||||||
|
prerule = function() return not(not(arg_domain)) end
|
||||||
|
|
||||||
local function parseSvcList(services)
|
local function parseSvcList(services)
|
||||||
local i = 1
|
local i = 1
|
||||||
return function()
|
return function()
|
||||||
|
|||||||
Reference in New Issue
Block a user