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

#https://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("https://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:

November 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close