hashcat下载

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

hashcat
https://hashcat.net/hashcat/

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

hashcat使用

获取hash值

通过John the Ripper工具获取hash

1
rar2john.exe <文件名>

参数

  1. -m 选择hash模式,通过hash值计算,可以通过命令自动运算
1
hashcat <hash值>
  1. -a 选择攻击模式
参数 含义
-a 0 字典破解
-a 1 多字典组合破解
-a 3 掩码破解
-a 6 字典+掩码破解
-a 7 掩码+字典破解
  1. 掩码占位符
占位符 含义 字符集
?l 小写字母 abcdefghijklmnopqrstuvwxyz
?u 大写字母 ABCDEFGHIJKLMNOPQRSTUVWXYZ
?d 数字 0123456789
?s 特殊符号 `` !"#$%&'()*+,-./:;<=>?@[]^_`{
?a 所有字符 ?l?u?d?s 的并集
?b 十六进制值 0x00 - 0xff(所有二进制字符)

限制密码长度范围爆破

rar hash值爆破

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

上次中断处开始

1
hashcat -m 13000 -a 3 --restore