Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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