Skip to content

Commit b4656f4

Browse files
committed
Fix rapid7#5616, Save username before stop_on_success breaks the task
Fix rapid7#5616
1 parent 093f339 commit b4656f4

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/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ def scan!
220220

221221
if result.success?
222222
consecutive_error_count = 0
223-
break if stop_on_success
224223
successful_users << credential.public
224+
break if stop_on_success
225225
else
226226
if result.status == Metasploit::Model::Login::Status::UNABLE_TO_CONNECT
227227
consecutive_error_count += 1

0 commit comments

Comments
 (0)