Skip to content

Commit f7af978

Browse files
sho-luvTod Beardsley
authored andcommitted
Rescue InvalidWordCount error
This is a cherry-pick of commit ea86da2 from PR rapid7#2656
1 parent 2d15ef6 commit f7af978

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/auxiliary/scanner/smb/smb_login.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ 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
131133
ensure
132134
disconnect()
133135
end

0 commit comments

Comments
 (0)