mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Credential object is creds.Account, not brute.Account. See #2086
This commit is contained in:
@@ -143,7 +143,7 @@ Driver = {
|
||||
return false, brute.Error:new(error_message)
|
||||
end
|
||||
|
||||
return true, brute.Account:new(username, password, creds.State.VALID)
|
||||
return true, creds.Account:new(username, password, creds.State.VALID)
|
||||
end,
|
||||
|
||||
check = function(self)
|
||||
|
||||
@@ -104,7 +104,7 @@ Driver = {
|
||||
hmac_salt, rakp2_message["hmac_sha1"], password)
|
||||
|
||||
if found then
|
||||
return true, brute.Account:new(username, password, creds.State.VALID)
|
||||
return true, creds.Account:new(username, password, creds.State.VALID)
|
||||
else
|
||||
return false, brute.Error:new("Incorrect password")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user