首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Mysql5crack Tool
来源:http://darkc0de.com/ 作者:d3hydr8 发布时间:2009-07-27  
For mysql4.x crack we have mysqlfast,but we don’t have mysql5crack tool,maybe this is the first.
Code by py:

#!/usr/bin/python
#Attempts to crack MySQL v5 hash using wordlist.
#http://darkc0de.com/
#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 <hash> <wordlist>"
  sys.exit(1)

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

try:
  import hashlib
  for word in words:
    if pw == c1(word):
      print "\nPassword is:",word
except(ImportError):
  import sha
  for word in words:
    if pw == c2(word):
      print "\nPassword is:",word

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·The Network Foundation compone
·Oracle version 11.1.0.6.0 win3
·URA 3.0 (cat) remote SQL injec
·Pixaria Gallery 2.3.5 (file) R
·stftp <= 1.10 (PWD Response) R
·MS Internet Explorer 7/8 findT
·ISC DHCP dhclient < 3.1.2p1 Re
·Scripteen Free Image Hosting S
·Cisco WLC 4402 Basic Auth Remo
·Wordpress 2.8.1 (url) Remote C
·Adobe Acrobat 9.1.2 NOS Local
·Mozilla Firefox 3.5 (Font tags
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved