mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Gets arguments with stdnse.get_script_args instead of reading them from nmap.registry
This commit is contained in:
parent
0e9a3e994d
commit
338ed74779
1 changed files with 3 additions and 3 deletions
|
|
@ -164,7 +164,7 @@ Driver =
|
|||
self.__index = self
|
||||
o.host = host
|
||||
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
|
||||
return o
|
||||
end,
|
||||
|
|
@ -237,8 +237,8 @@ Driver =
|
|||
action = function(host, port)
|
||||
local status, accounts
|
||||
|
||||
local repo = nmap.registry.args['svn-brute.repo']
|
||||
local force = nmap.registry.args['svn-brute.force']
|
||||
local repo = stdnse.get_script_args('svn-brute.repo')
|
||||
local force = stdnse.get_script_args('svn-brute.force')
|
||||
|
||||
if ( not(repo) ) then
|
||||
return "No repository specified (see svn-brute.repo)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue