设为首页 收藏本站
查看: 834|回复: 0

[经验分享] [python脚本]MD5破解工具iCrack

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-4-24 05:05:45 | 显示全部楼层 |阅读模式
  iCrack是一个在线/离线 md5破解工具,使用python编写,目前覆盖大约14个在线破解数据库。
  
  刚刚试了下,还不错


  1 #!/usr/bin/env python
  2 #
  3 # File_name: md5 hash cracker
  4 # Writin by: lnxg33k
  5 # Currently contains about 13 site for cracking
  6 #
  7 # This program is free software: you can redistribute it and/or modify
  8 # it under the terms of the GNU General Public License as published by
  9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program.  If not, see .
19 #
20
21 import sys
22 import time
23 import urllib2
24 import urllib
25 import re
26 import hashlib
27
28 if len(sys.argv) < 2:
29   print '\nUsage:'
30   print '\t%s --online [hash..] ' % sys.argv[0]
31   print '\t%s --offline [hash..] [dictionary..]'  % sys.argv[0]
32   sys.exit(1)
33
34 def banner():
35   print '''
36                   ___           ___           ___           ___           ___     
37     ___          /  /\         /  /\         /  /\         /  /\         /__/|   
38    /  /\        /  /:/        /  /::\       /  /::\       /  /:/        |  |:|   
39   /  /:/       /  /:/        /  /:/\:\     /  /:/\:\     /  /:/         |  |:|   
40  /__/::\      /  /:/  ___   /  /:/~/:/    /  /:/~/::\   /  /:/  ___   __|  |:|   
41  \__\/\:\__  /__/:/  /  /\ /__/:/ /:/___ /__/:/ /:/\:\ /__/:/  /  /\ /__/\_|:|____
42     \  \:\/\ \  \:\ /  /:/ \  \:\/:::::/ \  \:\/:/__\/ \  \:\ /  /:/ \  \:\/:::::/
43      \__\::/  \  \:\  /:/   \  \::/~~~~   \  \::/       \  \:\  /:/   \  \::/~~~~
44      /__/:/    \  \:\/:/     \  \:\        \  \:\        \  \:\/:/     \  \:\     
45      \__\/      \  \::/       \  \:\        \  \:\        \  \::/       \  \:\   
46                  \__\/         \__\/         \__\/         \__\/         \__\/
47   
48         |-----------------------------------------------|
49         | [+] MD5 Hash Cracker (online | offline)       |
50         | [+] Home: http://www.isecur1ty.org            |
51         | [+] Written by: isecur1ty team members        |
52         | [+] Credits: Obzy, Relik and Sas-TerrOrisT    |
53         |-----------------------------------------------|
54 '''
55
56 option   = sys.argv[1]
57 passwd   = sys.argv[2]
58
59 if option == '--online':
60   if len(passwd) != 32:
61     print '\n
  • Error: "%s" doesn\'t seem to be a valid MD5 hash "32 bit hexadecimal"' % passwd
    62   else:
    63     try:
    64       banner()
    65       def myaddr():
    66         site = 'http://md5.my-addr.com/'
    67         rest = 'md5_decrypt-md5_cracker_online/md5_decoder_tool.php'
    68         para = urllib.urlencode({'md5':passwd})
    69         req  = urllib2.Request(site+rest)
    70         try:
    71           fd   = urllib2.urlopen(req, para)
    72           data = fd.read()
    73           match= re.search('(Hashed string: )(\w+.\w+)', data)
    74           if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(2))
    75           else: print '[-] site: %s\t\t\tPassword: Not found' % site
    76         except urllib2.URLError:  print '[+] site: %s \t\t\t[+] Error: seems to be down' % site
    77       myaddr()
    78
    79       def victorov():
    80         try:
    81           site = 'http://www.victorov.su/'
    82           para = 'md5/?md5e=&md5d=%s' % passwd
    83           req  = urllib2.Request(site+para)
    84           req.add_header
    85           opener = urllib2.urlopen(req)
    86           data = opener.read()
    87           match = re.search('()(.+[^>])()', data)
    88           if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(2))
    89           else: print '[-] site: %s\t\t\tPassword: Not found' % site
    90         except urllib2.URLError:  print '[+] site: %s \t\t\t[+] Error: seems to be down' % site
    91       victorov()
    92      
    93       def md5crack():
    94         site = 'http://www.md5crack.com/'
    95         rest = 'crackmd5.php'
    96         para = urllib.urlencode({'term':passwd})
    97         req = urllib2.Request(site+rest)
    98         try:
    99           fd = urllib2.urlopen(req, para)
    100           data = fd.read()
    101           match = re.search('(Found: md5)(..)(\w+.\w+)', data)
    102           if match: print '[-] site: %s\t\t\tPassword: %s' % (site, match.group(3))
    103           else: print '[-] site: %s\t\t\tPassword: Not found' % site
    104         except urllib2.URLError: print '[+] site: %s \t\t\t[+] Error seems to be down' % site
    105       md5crack()
    106      
    107       def passcracking():
    108         site = 'http://passcracking.com/'
    109         rest = 'index.php'
    110         para = urllib.urlencode({'datafromuser':passwd})
    111         req = urllib2.Request(site+rest)
    112         try:
    113           fd = urllib2.urlopen(req, para)
    114           data = fd.read()
    115           match = re.search(r"()(.+[^

  • 运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
    2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
    3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
    4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
    5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
    6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
    7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
    8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

    所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-59995-1-1.html 上篇帖子: Python中文全攻略[转载] 下篇帖子: 之前写过的一个python统计框架
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    扫码加入运维网微信交流群X

    扫码加入运维网微信交流群

    扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

    扫描微信二维码查看详情

    客服E-mail:kefu@iyunv.com 客服QQ:1061981298


    QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


    提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


    本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



    合作伙伴: 青云cloud

    快速回复 返回顶部 返回列表