Skip to content

Instantly share code, notes, and snippets.

@KelSolaar
Created June 6, 2012 17:37
Show Gist options
  • Save KelSolaar/2883483 to your computer and use it in GitHub Desktop.
Save KelSolaar/2883483 to your computer and use it in GitHub Desktop.
Linkedin Password Checker
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