Un simple programa para crackear hashes md5
#!usr/bin/ruby
#PassChecker (C) Doddy Hackman 2011

require 'net/http'

def toma(web)
   return Net::HTTP.get_response(URI.parse(web)).body
   end

def uso()
 print "\n[+] pass.rb <hash>\n"
end


def head() 
  print "\n\n -- == PassChecker == --\n\n\n"
end

def copyright() 
   print "\n\n\n(C) Doddy Hackman 2011\n\n"
   exit(1)
 end

def crack(hash)

 if hash.length == 32
  print "\n[+] Cracking hash #{hash}\n\n"
  begin 
  code = toma("http://victorov.su/md5/?md5e=&md5d="+hash)
  if code=~/MD5 ðàñøèôðîâàí: <b>(.*)<\/b>/
   print "\n[+] Hash : "+$1+"\n"
  else
   print "\n[-] Pass not crack\n"
   end
  rescue
  print "\n[-] Page offline\n"
  end
 else
  print "\n[-] Dont Hash\n\n"
end


end
 

head()
if !ARGV[0] 
 uso()
else 
 crack(ARGV[0])  
end
copyright()
Responder

Volver a “Otros lenguajes de Scripting”