mirror of
https://github.com/nmap/nmap.git
synced 2026-02-07 22:16:33 +00:00
Convert brute threads script-args to number. Closes #627
This commit is contained in:
@@ -33,7 +33,7 @@ portrule = shortport.port_or_service(8834, "ssl/http", "tcp")
|
||||
|
||||
local arg_timeout = stdnse.parse_timespec(stdnse.get_script_args(SCRIPT_NAME..'.timeout'))
|
||||
arg_timeout = (arg_timeout or 5) * 1000
|
||||
local arg_threads = stdnse.get_script_args("nessus-xmlrpc-brute.threads")
|
||||
local arg_threads = tonumber(stdnse.get_script_args("nessus-xmlrpc-brute.threads"))
|
||||
|
||||
local function authenticate(host, port, username, password)
|
||||
local post_data = ("login=%s&password=%s"):format(username, password)
|
||||
|
||||
Reference in New Issue
Block a user