Skip to content

Instantly share code, notes, and snippets.

Created February 20, 2014 04:54
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mubix/9107276 to your computer and use it in GitHub Desktop.
Just charset brute force script
#!/usr/bin/env ruby
## Brute code stolen form:
def result?(sub)
puts sub
1 == 2
def crack_yielding(chars)
crack_yield(chars){ |p|
return p if result?(p)
def crack_yield(chars)
chars.each { |c| yield c }
crack_yield(chars) { |c|
chars.each do |x|
yield c + x
chars = ('a'..'z').to_a
(0..9).each {|x| chars << x.to_s}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment