1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 04:19:02 +00:00

Changed default timeout to 30s for url-snarf, rather than infinite

This commit is contained in:
patrik
2012-01-29 10:51:57 +00:00
parent 3fe1a5f44f
commit 0e75bceb37

View File

@@ -15,7 +15,7 @@ ctrl+break is issued, which is the default.
-- | url-snarf:
-- |_ Sniffed 169 URLs in 5 seconds
--
-- @arg timeout runs the script until timeout is reached (defaul: infinite)
-- @arg timeout runs the script until timeout is reached (defaul: 30s)
-- @arg nostdout doesn't write any output to stdout while running
-- @arg outfile filename to which all discovered URLs are written
--
@@ -78,7 +78,7 @@ local function get_url(data)
return u
end
local arg_timeout = tonumber(stdnse.get_script_args(SCRIPT_NAME..".timeout"))
local arg_timeout = tonumber(stdnse.get_script_args(SCRIPT_NAME..".timeout")) or 30
local arg_nostdout= stdnse.get_script_args(SCRIPT_NAME..".nostdout")
local arg_outfile = stdnse.get_script_args(SCRIPT_NAME..".outfile")