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 messagesbug/bundler_fix
parent
d25f0d8f6c
commit
ed8f87d3cf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue