public
Created — forked from aaronbassett/gist:2882221

Check LinkedIn password hash dump (combo_not.txt) for a particular string

  • Download Gist
gistfile1.py
Python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
"""
Save this file as linkedin_hash.py and ensure it's
in the same folder as combo_not.txt
 
Usage: python linkedin_hash.py hunter2
"""
 
from hashlib import sha1
import sys
 
password = sys.argv[1]
hsh = sha1(password).hexdigest()
x = 0
 
for line in open('combo_not.txt','r'):
if hsh == line.strip():
x += 1
elif "00000" + hsh[5:] == line.strip():
x += 1
 
print "Number of matches: %d" % x

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.