Skip to content

Instantly share code, notes, and snippets.

@jsundram
Created June 6, 2012 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jsundram/2882954 to your computer and use it in GitHub Desktop.
Save jsundram/2882954 to your computer and use it in GitHub Desktop.
Check if your password is in the linkedin password dump.
"""
Check if your password is in the linkedin password dump.
You'll need to download the dump from here:
https://disk.yandex.net/disk/public/?hash=pCAcIfV7wxXCL/YPhObEEH5u5PKPlp+muGtgOEptAS4=
and unzip it to combo_not.txt
"""
import hashlib
# TODO: May want to use getpass if someone might be reading over your shoulder
pw = raw_input("Enter the password you wish to find: ")
sha1 = hashlib.sha1(pw).hexdigest()
sha1_redacted = '00000' + sha1[5:]
found = False
with open('combo_not.txt') as f:
for i, line in enumerate(f):
h = line.strip()
if h == sha1 or h == sha1_redacted:
print "Found it on line %d" % i
found = True
if not found:
print "password %s not found" % (pw)
@kylecronin
Copy link

I'm getting a "token has expired" link for the bit.ly link. Do you have an updated one?

@jsundram
Copy link
Author

jsundram commented Jun 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment