class Object
Constants
- PROGRESS
Public Instance Methods
main(options, total)
click to toggle source
# File lib/ciscobruter.rb, line 95 def main(options, total) threads = Thread.pool(100) info "Trying #{total} username/password combinations..." options[:usernames].each do |username| options[:passwords].each do |password| threads.process { bruter = Ciscobruter.new(options[:target], options[:verbose], options[:path], options[:group]) bruter.try_credentials(username.chomp, password.chomp) PROGRESS.increment } end end threads.shutdown end