# Run script in the same directory as combo_not.txt file. #!/usr/bin/env ruby require 'digest/sha1' require 'rubygems' require 'highline/import' puts "reading hashes..." data = File.read("combo_not.txt").split("\r\n") while true do begin pass = ask("LinkedIn password: ") {|q| q.echo = false} pass = Digest::SHA1.hexdigest(pass) match = false if data.include?(pass) puts "yup: #{pass}" else 10.times do |i| if data.include?("#{"0" * (i + 1)}#{pass[i + 1,pass.length]}") match = true puts "yup: #{"0" * (i + 1)}#{pass[i + 1,pass.length]}" break end end if !match data.each {|hash| next if hash !~ /0000/ orig = hash hash = hash.split("0000").delete_if {|item| !item || item.length < 5} hash.each {|part| if pass =~ /#{part}/ puts "maybe: #{orig}" match = true break end } break if match } puts "nope...but change your password anyway" if !match end end rescue Exception puts "" break end end