Skip to content

Instantly share code, notes, and snippets.

@zachriggle
Created April 23, 2011 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zachriggle/939024 to your computer and use it in GitHub Desktop.
Save zachriggle/939024 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import md5, sys
h = '\x8b\x07Y\x98!\n\x1a\xc8\x86\xe8G\x0f\x9a\x8b[\xc0'.encode('hex')
def chk(s):
print s
if (md5.new(s).hexdigest() == h):
sys.exit()
def r(wi, po, bs):
for c in ([32] + range(97, 123)):
if (po < wi - 1):
r(wi, po + 1, bs + "%c" % c)
chk(bs + "%c" % c)
for q in range(1, 32): r(q, 0, "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment