Skip to content

Instantly share code, notes, and snippets.

@jfinstrom
Created September 29, 2014 18:44
Show Gist options
  • Save jfinstrom/4ff8ddf48f7cdffd8446 to your computer and use it in GitHub Desktop.
Save jfinstrom/4ff8ddf48f7cdffd8446 to your computer and use it in GitHub Desktop.
Passing thought on hash reversal of simple hashes.
#!/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