Created
June 6, 2012 17:37
-
-
Save KelSolaar/2883483 to your computer and use it in GitHub Desktop.
Linkedin Password Checker
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
from hashlib import sha1 | |
def getHashes(data, fill=5): | |
hash = sha1(data).hexdigest() | |
return hash, "{0}{1}".format("0"*fill, hash[fill:]) | |
hashes = getHashes("password") | |
for line in file("combo_not.txt", "r"): | |
if line.strip() in hashes: | |
print "Hashe(s) found: '{0}'".format(hashes) | |
break | |
else: | |
print "Hashe(s) not found!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment