Skip to content

Commit

Permalink
Merge pull request #2 from Traviis/specify_if_cracked
Browse files Browse the repository at this point in the history
Modified script to specify if the password entered was already cracked.
  • Loading branch information
hungtruong committed Jun 26, 2012
2 parents 4b781c5 + 8ebb4d8 commit eb380eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@

p = getpass.getpass("Enter your password (it won't be displayed): ")

hex = hashlib.sha1(p).hexdigest()[6:]
hex = hashlib.sha1(p).hexdigest()
hexshort = hex[6:]

passwords = open('combo_not.txt', 'r')

for password in passwords:
if re.search(hex,password):
print "The password you typed in was found in the leaked database. You should probably change your LinkedIn password."
print "The password you typed in was found in the leaked database, but it hasn't yet been cracked in this version of the list. You should probably change your LinkedIn password."
exit()
if re.search(hexshort,password):
print "The password you typed in was found in the leaked database, and it was already cracked. You should probably change your LinkedIn password."
exit()

print "The password you typed was NOT found in the leaked database. You should change your LinkedIn password anyway."

0 comments on commit eb380eb

Please sign in to comment.