Land #9638, treat 'password must change' as a successful login

GSoC/Meterpreter_Web_Console
Jeffrey Martin 2018-02-28 11:28:38 -06:00
commit 425f949bf8
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 3 additions and 3 deletions

View File

@ -118,14 +118,14 @@ module Metasploit
end
case status_code.name
when *StatusCodes::CORRECT_CREDENTIAL_STATUS_CODES
status = Metasploit::Model::Login::Status::DENIED_ACCESS
when 'STATUS_SUCCESS'
when 'STATUS_SUCCESS', 'STATUS_PASSWORD_MUST_CHANGE', 'STATUS_PASSWORD_EXPIRED'
status = Metasploit::Model::Login::Status::SUCCESSFUL
when 'STATUS_ACCOUNT_LOCKED_OUT'
status = Metasploit::Model::Login::Status::LOCKED_OUT
when 'STATUS_LOGON_FAILURE', 'STATUS_ACCESS_DENIED'
status = Metasploit::Model::Login::Status::INCORRECT
when *StatusCodes::CORRECT_CREDENTIAL_STATUS_CODES
status = Metasploit::Model::Login::Status::DENIED_ACCESS
else
status = Metasploit::Model::Login::Status::INCORRECT
end