1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 09:29:01 +00:00

Simple portrule: trust whatever the user gives us.

This commit is contained in:
david
2011-03-05 21:16:16 +00:00
parent 7408acbb60
commit 66a7e95105

View File

@@ -30,16 +30,7 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {"intrusive", "discovery"}
prerule = function()
if nmap.registry.args['dns-brute.domain'] then
local name = nmap.registry.args['dns-brute.domain']
if(name:match("^(%d*)%.(%d*)%.(%d*)%.(%d*)$")) then
return false
else
return true
end
else
return false
end
return stdnse.get_script_args("dns-brute.domain")
end
hostrule = function(host)