Created
June 6, 2012 16:08
-
-
Save jsundram/2882954 to your computer and use it in GitHub Desktop.
Check if your password is in the linkedin password dump.
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
""" | |
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) |
Updated password link here:
https://disk.yandex.net/disk/public/?hash=pCAcIfV7wxXCL/YPhObEEH5u5PKPlp+muGtgOEptAS4=
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting a "token has expired" link for the bit.ly link. Do you have an updated one?