偶然学会的小技巧
本文记录一些偶然用到的小技巧,跟科研无直接关联(也许?)
暴力破解压缩包密码
大致思路
借助工具:join the ripper & hashcat,在命令行中运行。
- 首先利用join the ripper获得hash值
1 | rar2john.exe xxxx.rar |
假如我们获得的输出是:"$rar5$16$4ce713ae3e7b5bc7f6ccff8fafa09fcc$15$bd7b7c38adefdb434dfb6424b6280e64$8$f6f2a7f332e958e5"
- 使用hashcat对hash码进行破解
1 | hashcat.exe -m 13000 -a 3 hash -o password.txt |
-m 13000
: 代表hash的类型值,需要通过hashcat官网进行查询。例如上述例子的类型为 rar5 对应值为13000
hashcat官网-a 3
: 代表破解类型为掩码攻击,即无字典-o password.txt
: 代表结果保存在该文件里
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.