mirror of
https://github.com/nmap/nmap.git
synced 2026-01-08 07:29:03 +00:00
Fixed errors found by nse_check_globals.
This commit is contained in:
@@ -51,7 +51,7 @@ Driver = {
|
||||
if ( status ) then
|
||||
return true, brute.Account:new(username, password, creds.State.VALID)
|
||||
elseif ( resp ~= "Authentication failed" ) then
|
||||
local err = brute.Error:new( err )
|
||||
local err = brute.Error:new( resp )
|
||||
err:setRetry( true )
|
||||
return false, err
|
||||
end
|
||||
@@ -100,7 +100,7 @@ action = function(host, port)
|
||||
|
||||
engine.options.script_name = SCRIPT_NAME
|
||||
engine.options.firstonly = true
|
||||
status, result = engine:start()
|
||||
local status, result = engine:start()
|
||||
|
||||
return result
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user