Skip to content

Commit a06d49a

Browse files
committed
Return symbols
STOP_ON_SUCCESS is being ignored because the module's login function doesn't pass a symbol to the mixin. This addresses that.
1 parent 54883da commit a06d49a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/auxiliary/scanner/smb/smb_login.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,15 @@ def try_user_pass(domain, user, pass)
215215
print_status(output_message % "GUEST LOGIN")
216216
end
217217
end
218+
219+
return :next_user
220+
218221
when *@correct_credentials_status_codes
219222
print_status(output_message % "FAILED LOGIN, VALID CREDENTIALS" )
220223
report_creds(domain,user,pass,false)
221224
validuser_case_sensitive?(domain, user, pass)
225+
return :skip_user
226+
222227
when 'STATUS_LOGON_FAILURE', 'STATUS_ACCESS_DENIED'
223228
vprint_error(output_message % "FAILED LOGIN")
224229
else

0 commit comments

Comments
 (0)