-
-
Save andreapavoni/2888656 to your computer and use it in GitHub Desktop.
linkedin dump password check
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
#!/usr/bin/env ruby | |
# USAGE: ruby myleakedin.rb yourpassword | |
# assumes you have the dump in the same dir as combo_not.txt | |
require 'digest/sha1' | |
pass = ARGV.first | |
hex = Digest::SHA1.hexdigest(pass) | |
print "HEX: #{hex} => " | |
puts `grep #{hex} combo_not.txt`.empty? ? "ok" : "cracked!" | |
print "HEX-2: #{hex.sub!(/^...../,'00000')} => " | |
puts `grep #{hex} combo_not.txt`.empty? ? "ok" : "cracked!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment