From 0e9a3e994d19c1d081dd53c2ca397acf62afc906 Mon Sep 17 00:00:00 2001 From: paulino Date: Wed, 27 Jul 2011 03:24:17 +0000 Subject: [PATCH] Gets arguments with stdnse.get_script_args() instead of reading them from nmap.registry --- scripts/whois.nse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/whois.nse b/scripts/whois.nse index 068f5b536..270761c61 100644 --- a/scripts/whois.nse +++ b/scripts/whois.nse @@ -1655,8 +1655,8 @@ function get_args() args = nmap.registry.args.whois.whodb elseif nmap.registry.args.whodb then args = nmap.registry.args.whodb - elseif nmap.registry.args['whois.whodb'] then - args = nmap.registry.args['whois.whodb'] + elseif stdnse.get_script_args('whois.whodb') then + args = stdnse.get_script_args('whois.whodb') else return end