[Python] Simple Crack Hash

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

Tema anterior - Siguiente tema

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

Julio 03, 2011, 09:55:03 PM Ultima modificación: Julio 07, 2011, 07:02:42 PM por Sthefano02
Un simple programa para crackear hashes md5


Código: python

#Simple Crack Hash
#(C) DOddy Hackman 2011
#Test with 202cb962ac59075b964b07152d234b70:123

import urllib2,re,sys

nave = urllib2.build_opener(urllib2.HTTPCookieProcessor())
nave.add_header = [('User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5')]


def head():
print "\n\n== -- Crack Hash -- ==\n\n"

def copyright():
print "\n\n(C) Doddy HAckman 2011\n"

def uso():
print "\n[+] crackhash.py <hash>\n\n"

def crack(passw):
print "\n[+] Cracking...\n\n"
code = toma("http://md5.hashcracking.com/search.php?md5="+passw)
if re.findall("Cleartext of (.*) is (.*)",code):
  control = re.findall("Cleartext of (.*) is (.*)",code)
  print "[+] Password : "+control[0][1]
else:
  print "\n[-] Not Found\n\n"
   
def toma(web):
return nave.open(web).read()

head()

if len(sys.argv) == 2 :
crack(sys.argv[1])
else:
uso()

copyright()