Skip to content

Instantly share code, notes, and snippets.

@riffraff
Created June 6, 2012 14:53
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 riffraff/2882358 to your computer and use it in GitHub Desktop.
Save riffraff/2882358 to your computer and use it in GitHub Desktop.
linkedin dump password check
# 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