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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user