Created
September 29, 2014 18:44
-
-
Save jfinstrom/4ff8ddf48f7cdffd8446 to your computer and use it in GitHub Desktop.
Passing thought on hash reversal of simple hashes.
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
#!/usr/bin/env python | |
import hashlib | |
import sys | |
m = hashlib.md5() | |
for x in range(1000,9999): | |
ext = str(x) | |
m.update(ext+":asterisk:"+ext) | |
if m.hexdigest() == sys.argv[1]: | |
print ext | |
print m.hexdigest() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment