Register for your free account! | Forgot your password?

You last visited: Today at 01:12

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



SQL v5

Discussion on SQL v5 within the Kal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2008
Posts: 8
Received Thanks: 0
SQL v5

MySQL v5 Hash Wordlist Cracker

submitted by d3hydr8 on 1/26/2009

Source:

#!/usr/bin/python
#Attempts to crack MySQL v5 hash using wordlist.
#
#d3hydr8[at]gmail[dot]com

import sys

def c1(word):
s = hashlib.sha1()
s.update(word[:-1])
s2 = hashlib.sha1()
s2.update(s.digest())
return s2.hexdigest()

def c2(word):
s = sha.new()
s.update(word[:-1])
s2 = sha.new()
s2.update(s.digest())
return s2.hexdigest()

if len(sys.argv) != 3:
print "Usage: ./mysql5crack.py "
sys.exit(1)

pw = sys.argv[1]
if len(pw) != 40:
print "Improper hash length"
sys.exit(1)
try:
words = open(sys.argv[2], "r")
except(IOError):
print "Error: Check your wordlist path"
sys.exit(1)
words = words.readlines()
print "Words Loaded:",len(words)

try:
import hashlib
for word in words:
if pw == c1(word):
print "Password is:",word
except(ImportError):
import sha
for word in words:
if pw == c2(word):
print "Password is:",word
GlobalFaer is offline  
Reply




All times are GMT +1. The time now is 01:13.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.