mirror of
https://github.com/nmap/nmap.git
synced 2026-06-26 11:12:00 +00:00
Simple portrule: trust whatever the user gives us.
This commit is contained in:
parent
7408acbb60
commit
66a7e95105
1 changed files with 1 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue