Skip to content

Commit bb35254

Browse files
committed
Rescue the right thing
MSP-9707
1 parent 7d9c0da commit bb35254

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
@@ -188,7 +188,7 @@ def attempt_login(credential)
188188
# If we made it this far without raising, we have a valid
189189
# login
190190
status = :success
191-
rescue ::Rex::Proto::SMB::Exceptions::ErrorCode => e
191+
rescue ::Rex::Proto::SMB::Exceptions::LoginError => e
192192
status = case e.get_error(e.error_code)
193193
when *StatusCodes::CORRECT_CREDENTIAL_STATUS_CODES
194194
:correct

0 commit comments

Comments
 (0)