Skip to content

Commit b79920b

Browse files
committed
Land rapid7#3089, InvalidWordCount fix for smb_login
[FixRM rapid7#8730]
2 parents c1cbeff + 206660d commit b79920b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/auxiliary/scanner/smb/smb_login.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ def check_login_status(domain, user, pass)
128128
status_code = e.get_error(e.error_code)
129129
rescue ::Rex::Proto::SMB::Exceptions::LoginError => e
130130
status_code = e.error_reason
131+
rescue ::Rex::Proto::SMB::Exceptions::InvalidWordCount => e
132+
status_code = e.error_reason
133+
rescue ::Rex::Proto::SMB::Exceptions::NoReply
131134
ensure
132135
disconnect()
133136
end

0 commit comments

Comments
 (0)