Skip to content

Commit 66e3ac4

Browse files
committed
treat 'password must change' as a successful login
1 parent 55a045e commit 66e3ac4

File tree

1 file changed

+1
-1
lines changed
  • lib/metasploit/framework/login_scanner

1 file changed

+1
-1
lines changed

lib/metasploit/framework/login_scanner/smb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def attempt_login(credential)
120120
case status_code.name
121121
when *StatusCodes::CORRECT_CREDENTIAL_STATUS_CODES
122122
status = Metasploit::Model::Login::Status::DENIED_ACCESS
123-
when 'STATUS_SUCCESS'
123+
when 'STATUS_SUCCESS', 'STATUS_PASSWORD_MUST_CHANGE'
124124
status = Metasploit::Model::Login::Status::SUCCESSFUL
125125
when 'STATUS_ACCOUNT_LOCKED_OUT'
126126
status = Metasploit::Model::Login::Status::LOCKED_OUT

0 commit comments

Comments
 (0)