背景:
1、已知格式为ZIP
2、已知密码为4位,前3位是数字,最后一位可能是数字可能是大写字母
步骤:
1、获得文件hash值
使用zip2john

2、爆破
1.使用john爆破密码

2.使用hashcat爆破密码
hashcat -a 3 -m 17200 /root/passwd.txt --increment ?d?d?d?u -o output.txt
解释:
-a的选择

-m的代码意味着哈希类型的选择,具体参考以下网址
example_hashes [hashcat wiki]
https://hashcat.net/wiki/doku.php?id=example_hashes
/root/passwd.txt
存放hash值,保留第一个$和最后一个$,例如($.....$)
--increment
自定义密码模式,例如1994,即为:--increment ?d?d?d?d

-o output.txt
输出破解内容到txt
1万+





