Created
June 6, 2012 14:53
-
-
Save riffraff/2882358 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
# assumes you have the dump in the same dir as combo_not.txt | |
require 'digest/sha1' | |
puts "insert password" | |
system "stty -echo" | |
pass = gets.chomp | |
system "stty echo" | |
hex= Digest::SHA1.hexdigest(pass) | |
puts hex | |
system "grep #{hex} combo_not.txt" | |
hex.sub!(/^...../,'00000') | |
puts hex | |
system "grep #{hex} combo_not.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment