[Ruby] PassChecker

Iniciado por BigBear, Julio 03, 2011, 09:55:37 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Julio 03, 2011, 09:55:37 PM Ultima modificación: Julio 31, 2014, 10:18:07 PM por Expermicid
Un simple programa para crackear hashes md5

Código: ruby

#!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()