Created
May 7, 2009 16:44
-
-
Save veryhappythings/108201 to your computer and use it in GitHub Desktop.
A brute force way to find the Kember Identity.
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
# A brute force way to find the Kember Identity. | |
# By Mac, @veryhappythings, on a boring afternoon. | |
# If you want, you can run it with the last attempt as an argument and it'll start there. | |
import hashlib | |
import sys | |
def iterative(): | |
last_attempt = len(sys.argv) > 1 and int(sys.argv[1]) or 0 | |
try: | |
while True: | |
attempt, last_attempt = '%032x' % last_attempt, last_attempt + 1 | |
if hashlib.md5(attempt).hexdigest() == attempt: | |
return attempt | |
finally: | |
print attempt | |
print last_attempt | |
print iterative() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment