mirror of
https://github.com/nmap/nmap.git
synced 2026-01-09 07:59:03 +00:00
o [NSE] added a debug message in the prerule to show that some arguments are missing.
This commit is contained in:
@@ -29,7 +29,13 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
||||
categories = {"intrusive", "discovery"}
|
||||
|
||||
prerule = function()
|
||||
return stdnse.get_script_args("dns-brute.domain")
|
||||
if not stdnse.get_script_args("dns-brute.domain") then
|
||||
stdnse.print_debug(3,
|
||||
"Skipping '%s' %s, 'dns-brute.domain' argument is missing.",
|
||||
SCRIPT_NAME, SCRIPT_TYPE)
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
hostrule = function(host)
|
||||
|
||||
Reference in New Issue
Block a user