mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41: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)
|
return false, brute.Error:new(error_message)
|
||||||
end
|
end
|
||||||
|
|
||||||
return true, brute.Account:new(username, password, creds.State.VALID)
|
return true, creds.Account:new(username, password, creds.State.VALID)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
check = function(self)
|
check = function(self)
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ Driver = {
|
|||||||
hmac_salt, rakp2_message["hmac_sha1"], password)
|
hmac_salt, rakp2_message["hmac_sha1"], password)
|
||||||
|
|
||||||
if found then
|
if found then
|
||||||
return true, brute.Account:new(username, password, creds.State.VALID)
|
return true, creds.Account:new(username, password, creds.State.VALID)
|
||||||
else
|
else
|
||||||
return false, brute.Error:new("Incorrect password")
|
return false, brute.Error:new("Incorrect password")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user