Land #9638, treat 'password must change' as a successful login
parent
b2f112fd2b
commit
789034a06c
|
@ -118,14 +118,14 @@ module Metasploit
|
||||||
end
|
end
|
||||||
|
|
||||||
case status_code.name
|
case status_code.name
|
||||||
when *StatusCodes::CORRECT_CREDENTIAL_STATUS_CODES
|
when 'STATUS_SUCCESS', 'STATUS_PASSWORD_MUST_CHANGE', 'STATUS_PASSWORD_EXPIRED'
|
||||||
status = Metasploit::Model::Login::Status::DENIED_ACCESS
|
|
||||||
when 'STATUS_SUCCESS'
|
|
||||||
status = Metasploit::Model::Login::Status::SUCCESSFUL
|
status = Metasploit::Model::Login::Status::SUCCESSFUL
|
||||||
when 'STATUS_ACCOUNT_LOCKED_OUT'
|
when 'STATUS_ACCOUNT_LOCKED_OUT'
|
||||||
status = Metasploit::Model::Login::Status::LOCKED_OUT
|
status = Metasploit::Model::Login::Status::LOCKED_OUT
|
||||||
when 'STATUS_LOGON_FAILURE', 'STATUS_ACCESS_DENIED'
|
when 'STATUS_LOGON_FAILURE', 'STATUS_ACCESS_DENIED'
|
||||||
status = Metasploit::Model::Login::Status::INCORRECT
|
status = Metasploit::Model::Login::Status::INCORRECT
|
||||||
|
when *StatusCodes::CORRECT_CREDENTIAL_STATUS_CODES
|
||||||
|
status = Metasploit::Model::Login::Status::DENIED_ACCESS
|
||||||
else
|
else
|
||||||
status = Metasploit::Model::Login::Status::INCORRECT
|
status = Metasploit::Model::Login::Status::INCORRECT
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue