1
0
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:
djalal
2011-11-09 12:39:01 +00:00
parent 5ea6fe675d
commit 8a175d127d

View File

@@ -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)