准备

下载地址 John the Ripper password cracker (openwall.com)

下载地址Hashcat - 高级密码恢复

第一步

在joho软件的run目录下打开cmd

输入 rar2john.exe xxx.rar

rar-> rar2john.exe

zip->zip2john.exe

获取到一串hash值,复制备用,实例如下

123.rar:$rar5$16$1f628e5f4fc89d9a49bec9f701724804$15$3b566c0b225c5d3b665389e4b0e85185$8$d23dfb32e4dc1a66

第二部

在hashcat目录进入cmd

输入

hashcat.exe -m 13000 -a 3 $rar5$16$b7e4f6fdded18294af7fb043c4f7add6$15$6ca43311367da15f97d5282c65743367$8$c4d5241755cba30c -o password.txt

-m 指定要破解的hash类型。如果不指定,默认md5. 类型在第一步生成hash值$$中(在hashcat官网hash类型中可以查看)example_hashes [hashcat wiki]

-a 指定要使用的破解模式,0 字典攻击 1 组合攻击 3 掩码攻击

-o 结果文件