import urllib __id__ = "$Id: md5_cracker.py 2010-03-28 13:13$" __version__ = "$Revision: 0 $" __date__ = "$Date: 2010-03-28 13:13:51 +0100 (San, 28 Mar 2010) $" __author__ = "noukeys reverser (noukeys@gmail.com)" __copyright__ = "Copyright 2010+ noukeys" __license__ = "GPL" __URL__ = "http://www.reversing.es" #Busca un hash en diversas webs conocidas. def md5search(hash): find = ''; #busqueda: try: if find == '': f = urllib.urlopen("http://gdataonline.com/qkhash.php?mode=txt&hash=" + hash.strip('\t\n')) for line in f.readlines(): if (line.find('') != -1) and (line.find('????') == -1): line = line.partition('35%">') line = line[2].partition('') find = line[0] except: pass #busqueda try: if find == '': params = urllib.urlencode({'pass': hash.strip('\t\n'), 'option': 'hash2text', 'send': 'Submit'}) f = urllib.urlopen("http://md5online.net/", params) for line in f.readlines(): if line.find('pass :') != -1: line = line.partition('s : ') line = line[2].partition('') find = line[0] except: pass #busqueda try: if find == '': params = urllib.urlencode({'term': hash.strip('\t\n'), 'crackbtn': 'Crack+that+hash+baby%21'}) f = urllib.urlopen("http://md5crack.com/crackmd5.php", params) for line in f.readlines(): if line.find('Found') != -1: line = line.partition('("') line = line[2].partition('")') find = line[0] except: pass #Resultados return find.strip('\t\n') #P.O.C. print md5search('084e0343a0486ff05530df6c705c8bb4')