Skip to content

Commit 206660d

Browse files
author
Tod Beardsley
committed
Recreate the intent of cfebdae from @parzamendi-r7
The idea was to rescue on a NoReply instead of just fail, and was part of a fix in rapid7#2656. [SeeRM rapid7#8730]
1 parent f7af978 commit 206660d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/auxiliary/scanner/smb/smb_login.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def check_login_status(domain, user, pass)
130130
status_code = e.error_reason
131131
rescue ::Rex::Proto::SMB::Exceptions::InvalidWordCount => e
132132
status_code = e.error_reason
133+
rescue ::Rex::Proto::SMB::Exceptions::NoReply
133134
ensure
134135
disconnect()
135136
end

0 commit comments

Comments
 (0)