allow scan! to take a blcok

by allowing scan! to take block
and yield the result of each attempt
we can do things like have a module print out
status messages
bug/bundler_fix
David Maloney 2014-04-23 12:41:10 -05:00
parent d25f0d8f6c
commit ed8f87d3cf
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,8 @@ module Metasploit
valid!
cred_details.each do |credential|
result = attempt_login(credential.public, credential.private)
result.freeze
yield result if block_given?
if result.success?
successes << result
break if stop_on_success