accept no compromises

dumpcrack1.2.py.txt

dumpcrack1.2.py.txt
Posted Jan 5, 2008
Authored by d3hydr8 | Site darkc0de.com

dumpcrack is a utility that will take in a list of MD5 checksums from a database dump and attempts to crack them using a wordlist or milw0rm's database.

tags | cracker
MD5 | 00896d6e20eff716fc1bac181eb24903

dumpcrack1.2.py.txt

Change Mirror Download
#!/usr/bin/python
#Collects all md5's from a database dump and
#attempts to crack them with a wordlist and
#milw0rms database. If one is cracked
#it will print out the line it was found on.

#Options: output format and email address search

#http://www.darkc0de.com
#d3hydr8[at]gmail[dot]com

import md5, sys, re, urllib

def out():
if output == "1":
print "\n",k,":",word[:-1],":",v
if output == "2":
print "\n",word[:-1],":",v
if output == "3":
print "\nMD5:",k,"Line:",v,"Cracked:",word[:-1]
if email == 1:
emails = re.findall('\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}', database[v])
if len(emails) >= 1:
print "Email:",emails[0]

def StripTags(text):
finished = 0
while not finished:
finished = 1
start = text.find("<")
if start >= 0:
stop = text[start:].find(">")
if stop >= 0:
text = text[:start] + text[start+stop+1:]
finished = 0
return text

def milw0rm(k):

site = urllib.urlopen("http://www.milw0rm.com/md5/search.php", urllib.urlencode({"hash": k})).readlines()
for line in site:
if re.search(k, line):
return StripTags(line).replace(k,"").replace("md5","").replace("cracked","").replace("notfound","").replace("waiting","")

if len(sys.argv) not in [4,5]:
print "\nUsage: ./dumpcrack.py <database> <wordlist> <output format>"
print "\n[Output Format]"
print "\t 1 - MD5:Cracked:Line"
print "\t 2 - Cracked:Line"
print "\t 3 - MD5: md5 Line: line Cracked: Cracked"
print "[Option]"
print "\t -e/-email - Will collect email address from line"
print "Example:"
print "\t ./dumpcrack.py db.sql words.txt 3 -email\n"
sys.exit(1)

try:
database = open(sys.argv[1], "r").readlines()
except(IOError):
print "\nError: Check your dump path\n"
sys.exit(1)

try:
words = open(sys.argv[2], "r").readlines()
except(IOError):
print "\nError: Check your wordlist path\n"
sys.exit(1)

output = sys.argv[3]
if output not in ["1","2","3"]:
output == "3"

num = 1
md5s = {}
print "\n[+] Words Loaded:",len(words)
print "[+] Output Format:",output
try:
if sys.argv[4] in ["-e","-email"]:
print "[+] Email Collect On"
email = 1
except(IndexError):
print "[-] Email Collect Off"
email = 0
pass
print "\n[+] Searching Database Dump..."
for line in database:
try:
MD5 = re.findall("[a-f0-9]"*32,line)[0]
md5s[MD5] = num
except(IndexError):
pass
num +=1
print "\n[+] MD5s Found:",len(md5s)
print "[+] Beginning Wordlist Crack\n"
for k,v in md5s.items():
for word in words:
value = md5.new(word[:-1]).hexdigest()
if k == value:
out()
del md5s[k]
print "\n[+] MD5s Left:",len(md5s)
print "[+] Beginning Milworm Crack\n"
for k,v in md5s.items():
value = milw0rm(k)
if value != None:
out()
del md5s[k]
print "\n[-] Uncracked:",len(md5s)
print "[-] Done\n"








Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

July 2017

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    2 Files
  • 2
    Jul 2nd
    3 Files
  • 3
    Jul 3rd
    15 Files
  • 4
    Jul 4th
    4 Files
  • 5
    Jul 5th
    15 Files
  • 6
    Jul 6th
    15 Files
  • 7
    Jul 7th
    10 Files
  • 8
    Jul 8th
    2 Files
  • 9
    Jul 9th
    10 Files
  • 10
    Jul 10th
    15 Files
  • 11
    Jul 11th
    15 Files
  • 12
    Jul 12th
    19 Files
  • 13
    Jul 13th
    16 Files
  • 14
    Jul 14th
    15 Files
  • 15
    Jul 15th
    3 Files
  • 16
    Jul 16th
    2 Files
  • 17
    Jul 17th
    8 Files
  • 18
    Jul 18th
    11 Files
  • 19
    Jul 19th
    15 Files
  • 20
    Jul 20th
    9 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    0 Files
  • 23
    Jul 23rd
    0 Files
  • 24
    Jul 24th
    0 Files
  • 25
    Jul 25th
    0 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2016 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close