1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-12 10:49:02 +00:00

Gets arguments with stdnse.get_script_args instead of reading them from nmap.registry

This commit is contained in:
paulino
2011-07-27 03:26:01 +00:00
parent 0e9a3e994d
commit 338ed74779

View File

@@ -164,7 +164,7 @@ Driver =
self.__index = self self.__index = self
o.host = host o.host = host
o.port = port o.port = port
o.repo = nmap.registry.args['svn-brute.repo'] o.repo = stdnse.get_script_args('svn-brute.repo')
o.invalid_users = invalid_users o.invalid_users = invalid_users
return o return o
end, end,
@@ -237,8 +237,8 @@ Driver =
action = function(host, port) action = function(host, port)
local status, accounts local status, accounts
local repo = nmap.registry.args['svn-brute.repo'] local repo = stdnse.get_script_args('svn-brute.repo')
local force = nmap.registry.args['svn-brute.force'] local force = stdnse.get_script_args('svn-brute.force')
if ( not(repo) ) then if ( not(repo) ) then
return "No repository specified (see svn-brute.repo)" return "No repository specified (see svn-brute.repo)"