exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

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
SHA-256 | 48d9b8972b748f009012cb0f729d45b98d5d4d48a143101395e6803b3bf8bce0

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"








Login or Register to add favorites

File Archive:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close