mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Gets arguments with stdnse.get_script_args instead of reading them from nmap.registry
This commit is contained in:
@@ -126,7 +126,7 @@ end
|
||||
function init()
|
||||
local customlist = nmap.registry.args.users or
|
||||
(nmap.registry.args.userdir and nmap.registry.args.userdir.users) or
|
||||
nmap.registry.args['userdir.users']
|
||||
stdnse.get_script_args('userdir.users')
|
||||
local read, usernames = datafiles.parse_file(customlist or "nselib/data/usernames.lst", {})
|
||||
if not read then
|
||||
stdnse.print_debug(1, "%s %s", SCRIPT_NAME,
|
||||
|
||||
Reference in New Issue
Block a user