Top Level Namespace
- Includes:
- Celluloid::Internals::Logger
Defined Under Namespace
Classes: Ciscobruter
Constant Summary collapse
- PROGRESS =
ProgressBar.create(format: "%a %e %P% Processed: %c from %C", total: total)
Instance Method Summary collapse
Instance Method Details
#main(options, total) ⇒ Object
95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/ciscobruter.rb', line 95 def main(, total) threads = Thread.pool(100) info "Trying #{total} username/password combinations..." [:usernames].each do |username| [:passwords].each do |password| threads.process { bruter = Ciscobruter.new([:target], [:verbose], [:path], [:group]) bruter.try_credentials(username.chomp, password.chomp) PROGRESS.increment } end end threads.shutdown end |