From 87d8a793f35aea82825477faa038917226f07106 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 16 Dec 2010 08:59:19 +0000 Subject: [PATCH] Use stdnse.get_script_args for modbus-discover.aggressive. --- scripts/modbus-discover.nse | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/modbus-discover.nse b/scripts/modbus-discover.nse index 24fb7b6dc..06a24ef3b 100644 --- a/scripts/modbus-discover.nse +++ b/scripts/modbus-discover.nse @@ -118,11 +118,8 @@ modbus_exception_codes = { } action = function(host, port) - local aggressive = false -- stop on first founded sid - - if (nmap.registry.args['modbus-discover.aggressive']) then - aggressive = nmap.registry.args['modbus-discover.aggressive'] - end + -- If false, stop after first sid. + local aggressive = stdnse.get_script_args('modbus-discover.aggressive') local opts = {timeout=2000} local results = {}