From 66a7e95105bcfeaced4df4931124b129fbc342fc Mon Sep 17 00:00:00 2001 From: david Date: Sat, 5 Mar 2011 21:16:16 +0000 Subject: [PATCH] Simple portrule: trust whatever the user gives us. --- scripts/dns-brute.nse | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/scripts/dns-brute.nse b/scripts/dns-brute.nse index 7b618acca..583993d3f 100644 --- a/scripts/dns-brute.nse +++ b/scripts/dns-brute.nse @@ -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)