Skip to content

Instantly share code, notes, and snippets.

@vient
Last active January 16, 2016 17:04
Show Gist options
  • Save vient/216ea3800dc6fc5cd5ca to your computer and use it in GitHub Desktop.
Save vient/216ea3800dc6fc5cd5ca to your computer and use it in GitHub Desktop.
def brute(s):
q = string.ascii_letters + string.digits
for a in q:
for b in q:
for c in q:
print(a+b+c)
for d in q:
for e in q:
for f in q:
m = md5()
ss = a+b+c+d+e+f
m.update(ss.encode())
if m.hexdigest().startswith(s):
return ss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment