hashcat下载

windows需要下载两个工具,一个hashcat,一个John the Ripper,下面是下载地址:

hashcat
https://hashcat.net/hashcat/

John the Ripper
https://www.openwall.com/john/

hashcat使用

获取hash值

  1. 通过John the Ripper工具获取hash
1
rar2john.exe <文件名>
  1. 通过windows命令获取md5值
1
certutil -hashfile <文件> MD5

参数

  1. -m
    选择hash模式,通过hash值计算,可以通过命令自动运算
1
hashcat <hash值>
  1. -a
    选择攻击模式
    |参数|含义|
    |:-:|:—|
    |-a 0|字典破解|
    |-a 1|多字典组合破解|
    |-a 3|掩码破解|
    |-a 6|字典+掩码破解|
    |-a 7|掩码+字典破解|

限制密码长度范围爆破

rar hash值爆破

1
hashcat -m 13000 -a 3 <hash值> ?a?a?a?a?a?a --increment --increment-min 4 --increment-max 6

MD5未知密码爆破

1
hash -m 0 -a 3 <MD5值> -O

上次中断处开始

1
hashcat -m 13000 -a 3 --restore