mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Converts brute.lua argument retrieval to stdnse.get_script_args()
to achieve consistent user experience
This commit is contained in:
parent
49c88de5a1
commit
00c95dda32
1 changed files with 3 additions and 3 deletions
|
|
@ -340,9 +340,9 @@ Options = {
|
|||
o.firstonly = self.checkBoolArg("brute.firstonly", false)
|
||||
o.passonly = self.checkBoolArg("brute.passonly", false)
|
||||
o.killstagnated = self.checkBoolArg("brute.killstagnated", false)
|
||||
o.max_retries = tonumber(nmap.registry.args["brute.retries"]) or 2
|
||||
o.delay = tonumber(nmap.registry.args["brute.delay"]) or 0
|
||||
o.max_guesses = tonumber(nmap.registry.args["brute.guesses"]) or 0
|
||||
o.max_retries = tonumber(stdnse.get_script_args("brute.retries")) or 2
|
||||
o.delay = tonumber(stdnse.get_script_args("brute.delay")) or 0
|
||||
o.max_guesses = tonumber(stdnse.get_script_args("brute.guesses")) or 0
|
||||
|
||||
return o
|
||||
end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue