mirror of
https://github.com/nmap/nmap.git
synced 2026-01-05 22:19:03 +00:00
Update timeout script-args to use standard timespec
Many scripts were documented as using timespecs (10s, 5000ms, etc) for timeout script-args, but one 1 or 2 actually did. Now all timeout script-args will accept timespecs, except those which took a number of milliseconds, which remain unchanged. Also fixed some documentation issues (missing script name in arg description, missing nsedoc for args, etc)
This commit is contained in:
@@ -18,7 +18,7 @@ are marked using the keyword Willing in the result.
|
||||
-- | broadcast-xdmcp-discover:
|
||||
-- |_ 192.168.2.162 - Willing
|
||||
--
|
||||
-- @arg broadcast-xdmcp-discover.timeout socket timeout in seconds (default: 5)
|
||||
-- @args broadcast-xdmcp-discover.timeout socket timeout (default: 5s)
|
||||
|
||||
author = "Patrik Karlsson"
|
||||
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
||||
@@ -27,7 +27,7 @@ categories = {"broadcast", "safe"}
|
||||
|
||||
prerule = function() return true end
|
||||
|
||||
local arg_timeout = stdnse.get_script_args(SCRIPT_NAME .. ".timeout")
|
||||
local arg_timeout = stdnse.parse_timespec(stdnse.get_script_args(SCRIPT_NAME .. ".timeout"))
|
||||
|
||||
action = function()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user