From 0e75bceb376e5d45a9b9a100677657be98143fb0 Mon Sep 17 00:00:00 2001 From: patrik Date: Sun, 29 Jan 2012 10:51:57 +0000 Subject: [PATCH] Changed default timeout to 30s for url-snarf, rather than infinite --- scripts/url-snarf.nse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/url-snarf.nse b/scripts/url-snarf.nse index f5eb82bf5..8190ff627 100644 --- a/scripts/url-snarf.nse +++ b/scripts/url-snarf.nse @@ -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")