mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Use stdnse.get_script_args for modbus-discover.aggressive.
This commit is contained in:
parent
41a81e1789
commit
87d8a793f3
1 changed files with 2 additions and 5 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue