Last active
January 16, 2016 17:04
-
-
Save vient/216ea3800dc6fc5cd5ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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