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(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