Skip to content

Instantly share code, notes, and snippets.

@andreapavoni
Forked from riffraff/gist:2882358
Created June 7, 2012 12:51
Show Gist options
  • Save andreapavoni/2888656 to your computer and use it in GitHub Desktop.
Save andreapavoni/2888656 to your computer and use it in GitHub Desktop.
linkedin dump password check
#!/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