Archiv verlassen und diese Seite im Standarddesign anzeigen : [S] md5 mass cracker
hab den thread schon auf hb erstellt - evtl. könnt ihr hier weiterhelfen:
da der massen crack von md5 auf hashkiller nicht mehr geht, suche ich eine neue möglichkeit um
mehrere 1000 hashes zu cracken.
z.b. lade ich eine txt auf eine seite/tool:
9a1c9e8a87b85bb7240eab0e10a0bf11
66daf8b107399fcfb4eafcfcac965743
38510a0e6a27666b20100b80f38a9e4a
46af1891e327be37175fe65564faa689
5a6624f0c12e23244ea5ddabfbf8a468
dd38182499cfa3aff0299c34c0a88ce0
und er soll mir die results in gleicher reihenfolge wieder ausgeben:
9a1c9e8a87b85bb7240eab0e10a0bf11:
66daf8b107399fcfb4eafcfcac965743:hausmann
38510a0e6a27666b20100b80f38a9e4a:
46af1891e327be37175fe65564faa689:flasche
5a6624f0c12e23244ea5ddabfbf8a468:
dd38182499cfa3aff0299c34c0a88ce0:
also keinen eintrag für nicht gefundene passes und
einen eintrag für gefundene passes.
#!/usr/bin/python
#
# protip: Works fine with SQLMap.
# PoC: [Link nur für registrierte und freigeschaltete Mitglieder sichtbar] & [Link nur für registrierte und freigeschaltete Mitglieder sichtbar]
import sys,getopt,re,urllib,urllib2
from socket import*
def linepad(line):
return "-" + line.center(70, " ") + "-"
print linepad("----------------------------------------------------------------------")
print linepad("")
print linepad("Coded by DiViS0R")
print linepad("Version 1.1")
print linepad("")
print linepad("THX to the hashcracker crew for hosting the best online rainbow table")
print linepad("")
print linepad("SRY to the hashcracker crew for causing traffic :)")
print linepad("")
print linepad("----------------------------------------------------------------------")
def main():
hashfile = False
hashoutfile = False
replace = False
limit = 1000000000000
try:
opts, args = getopt.getopt(sys.argv[1:], "hf:o:rl:", ["file=", "output=", "help", "replace", "limit="])
except getopt.GetoptError, err:
print str(err) # will print something like "option -a not recognized"
usage()
sys.exit(2)
for o, a in opts:
if o == "-f":
hashfile = a
if o == '-o':
hashoutfile = a
if o == '-r':
replace = True
if o == "-l":
limit = a
if o == '-h':
usage()
sys.exit()
if hashfile is False:
print "No input file specified."
usage()
sys.exit()
FILE = open(hashfile, "r")
content = 'dummy'
newfile = ''
hashout = ''
counter = 0
while (content != "" ) and (counter < int(limit)):
content = FILE.readline()
newfile += content
search = re.search(r'[a-zA-Z0-9]{32}', content)
if(search):
counter = counter +1
rhash = search.group()
chash = crkhashcracker(rhash)
if chash is False:
hashout += rhash + '\t\t' + "Not Found\n"
print rhash + '\t\t' + "Not Found"
else:
newfile = newfile.replace(rhash, chash.ljust(32, ' '))
hashout += rhash + "\t" + chash + "\n"
print rhash + '\t' + chash
FILE.close()
if hashoutfile is not False:
FILE = open(hashoutfile, "w")
if replace is True:
FILE.write(newfile)
else:
FILE.write(hashout)
FILE.close()
sys.exit()
#alternative:
def crkhashkiller(mhash):
params=urllib.urlencode({'oc_check_md5':mhash})
f=urllib.urlopen("[Link nur für registrierte und freigeschaltete Mitglieder sichtbar]",params)
content=f.read()
key=re.search(r'[a-zA-Z0-9]{32}:.*(?=<br)', content)
if key is None:
return False
else:
chash = key.group()
return chash[chash.index(':')+1:]
#prefered:
def crkhashcracker(mhash):
f=urllib.urlopen("[Link nur für registrierte und freigeschaltete Mitglieder sichtbar]"+mhash)
content=f.read()
if content == 'No results returned.':
return False
else:
return content.replace('Cleartext of ' + mhash + ' is ', '')
def usage():
print "\n\n"
print "-f \tInput file to get the hashes from"
print "-o \tThe output file to write. Not neccessary."
print "-r \tIf set, the output file will be the input file with replaced hashes."
print "-l \tLimits the number of hashes to crack"
print "-h \tDisplays this information"
print "\n\nNote:\nThe input file format and syntax is not really specified.\nThe script is looking for 32 char long combinations of numbers and letters.\nThis is handy but could also result in misdetection."
main()
kann jemand das script bitte testen ?
bei mir klappts nicht .... oder ich bin zu doof :-)
hab das script getestet funktioniert einwandfrei
ich habe folgendes eingegeben:
md5.py -f md5.txt
und bekomme diese meldung:
File "C:\Dokumente und Einstellungen\xxx\Desktop\md5.py", line 12
print linepad("-------------------------------------------------------------
---------")
^
SyntaxError: invalid syntax
Wenn man die Info raus nimmt, kommt auf Zeile 23 schon wieder ein Fehler.
Recht Buggy das Teil
installier dir mal die python version 2.7.2 hatte mehrere fehler auch vorher gehabt
klappt, ich danke dir !
hatte die python 3er version drauf gehabt.....
vBulletin® v3.8.7, Copyright ©2000-2012, Jelsoft Enterprises Ltd.