File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/metasploit/framework/login_scanner Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,14 +118,14 @@ def attempt_login(credential)
118
118
end
119
119
120
120
case status_code . name
121
- when *StatusCodes ::CORRECT_CREDENTIAL_STATUS_CODES
122
- status = Metasploit ::Model ::Login ::Status ::DENIED_ACCESS
123
- when 'STATUS_SUCCESS' , 'STATUS_PASSWORD_MUST_CHANGE'
121
+ when 'STATUS_SUCCESS' , 'STATUS_PASSWORD_MUST_CHANGE' , 'STATUS_PASSWORD_EXPIRED'
124
122
status = Metasploit ::Model ::Login ::Status ::SUCCESSFUL
125
123
when 'STATUS_ACCOUNT_LOCKED_OUT'
126
124
status = Metasploit ::Model ::Login ::Status ::LOCKED_OUT
127
125
when 'STATUS_LOGON_FAILURE' , 'STATUS_ACCESS_DENIED'
128
126
status = Metasploit ::Model ::Login ::Status ::INCORRECT
127
+ when *StatusCodes ::CORRECT_CREDENTIAL_STATUS_CODES
128
+ status = Metasploit ::Model ::Login ::Status ::DENIED_ACCESS
129
129
else
130
130
status = Metasploit ::Model ::Login ::Status ::INCORRECT
131
131
end
You can’t perform that action at this time.
0 commit comments