We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df8f281 + 4316d52 commit 4909a43Copy full SHA for 4909a43
lib/metasploit/framework/login_scanner/base.rb
@@ -252,7 +252,15 @@ def scan!
252
end
253
254
rescue => e
255
- elog('Attempt may not yield a result', error: e)
+ if framework_module
256
+ prefix = framework_module.respond_to?(:peer) ? "#{framework_module.peer} - LOGIN FAILED:" : "LOGIN FAILED:"
257
+ framework_module.print_warning("#{prefix} #{credential.to_h} - Unhandled error - scan may not produce correct results: #{e.message} - #{e.backtrace}")
258
+ end
259
+ elog("Scan Error: #{e.message}", error: e)
260
+ consecutive_error_count += 1
261
+ total_error_count += 1
262
+ break if consecutive_error_count >= 3
263
+ break if total_error_count >= 10
264
265
nil
266
0 commit comments