最近参加看雪的CrackMe挑战赛, 因为我写的CrackMe使用了散列算法. 所以为了测试时间, 在网上发现一个暴力破解密码的好东西, hashcat

刚开始的时候, 我想自己用汇编来写算法, 调用.. 用了最优化的汇编指令, 跑sha512结果还是比hashcat 4倍多.. 看来还是他牛B..破解速度杠杠的. 本来以为使用很复杂, 没想到使用也很简单. 好东西!!
首先去 https://hashcat.net/hashcat/下载程序, 我下载的hashcat是3.10版本, 绿色软件, 在windows Linux都可以运行, 好东西!! 运行hashcat64.exe –help查看详细使用文档.将明文”NpediyB” md5加密, 得到结果. “dccfd5008ef6e7e825193eb0e7b1b834”. 建立一个abcd.txt里面输入密文.然后使用命令
hashcat64.exe -a 3 -m 0 abcd.txt –custom-charset1 ?l?u?d ?1?1?1?1?1?1?1
-a是指定破解方式, 这里我们使用3  Brute-force (掩码暴力破解). 还可以指定明文的长度

–increment 原始密文长度限定

例如: –increment –increment-min 6 –increment-max 8
-m 指定加密方式, 具体–help看帮助, 多得很, 几乎常见的算法都有了. 我这里指定0表示使用md5算法.
–custom-charset1表示自定义一个掩码, 支持的掩码很多. 字母数字等等组合都有了, 很方便..
   ?l = abcdefghijklmnopqrstuvwxyz
   ?d = 0123456789
   ?s =  !”#$%&'()*+,-./:;<=>?@[\]^_`{|}~
   ?a = ?l?u?d?s
   ?b = 0x00 – 0xff
后面的?1?1?1?1?1?1?1表示有7个字符组成. 合起来就是破解一个7位字符的md5密码.. 跑到NpediyB在我的机器上花了13分钟, 还是很快了.
另外如果专门做暴力破解, 不干其他事情, 那还需要设置一下性能调优.
–gpu-loops 1000
–segment-size 1024
–gpu-accel 160
基本就是这么多了. 其他的一些东西摸索一下也就会了.. 这个东西还是很牛的.. 做暴力破解的话非常有用. 这边记录下!!


  1. minecraft 说:

    You are so awesome! I do not believe I have read anything like
    that before. So good to find someone with a few original thoughts on this topic.

    Seriously.. many thanks for starting this up.
    This website is something that is needed on the web, someone with
    a little originality!

  2. minecraft 说:

    I am really thankful to the owner of this web site who has
    shared this great paragraph at at this place.

  3. minecraft free download 2018 说:

    I love what you guys are up too. This type of clever work and coverage!
    Keep up the superb works guys I’ve included you guys to our blogroll.

  4. Health Benefits of Coconut Oil 说:

    Cool blog! Is your theme custom made or did you download it from somewhere?
    A theme like yours with a few simple tweeks would really make
    my blog shine. Please let me know where you got your theme.
    Thanks a lot

  5. Sling TV 说:

    It’s truly a great and helpful piece of info.
    I am happy that you just shared this useful
    info with us. Please keep us up to date like this. Thank you
    for sharing.

  6. What Equipment is Needed for Sling TV 说:

    This website was… how do I say it? Relevant!! Finally I’ve found something which helped me.
    Thanks a lot!

  7. What Equipment is Needed for Sling TV 说:

    Hi there to all, the contents existing at this web page are
    genuinely remarkable for people experience, well, keep up the nice work fellows.

  8. descargar facebook 说:

    I’ll right away seize your rss feed as I can’t find your email subscription link or
    e-newsletter service. Do you’ve any? Please let me realize in order that
    I may subscribe. Thanks.


发表评论前,请选对水果: 香蕉