压缩包密码破解教程,使用HashCat和Jhon the Ripper暴力破解压缩包轻松获取密码!

发布于 2023-04-26  159 次阅读


1.软件下载地址

1.hashcat :https://hashcat.net

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

2.rar破解

1.首先将要破解的rar文件放入jhon的run目录中(最好别带中文),然后在该目录中运行cmd命令

rar2john.exe xxxx.rar

然后你就会获得压缩包的hash值,类似这样:test.rar:$rar5$16$df491c0afdc8d24aba4d901c795728b4$15$9f54248725fe4285cd753736cc028c50$8$0ca9379126cce742

2.然后在去hashcat文件根目录运行cmd命令执行暴力破解,注意我加粗的字,是需要你替换的!!!

hashcat.exe -m 13000 -w 4 -a 3 $rar5$16$df491c0afdc8d24aba4d901c795728b4$15$9f54248725fe4285cd753736cc028c50$8$0ca9379126cce742 -o password.txt

最后按S可以刷新查看当前破解进度,显卡越好破解越快,示例图中没有显卡,大约要30分钟~

如果成功破解,则会在hashcat目录中生成一个password.txt,里面有破解出来的密码!

3.zip破解

zip2john.exe test.zip
test.zip/test.txt:$pkzip2$11201594aac42f30260154aac470b6fa72c2bc69e5738181cb7f406187f8084ce07cf5f$/pkzip2$:test.txt:test.zip::test.zip
hashcat -a 0 -m 17210 $pkzip2$11201594aac42f30260154aac470b6fa72c2bc69e5738181cb7f406187f8084ce07cf5f$/pkzip2$ -o password.txt --force

4.注意事项

运行John the Ripper需要安装python和perl环境变量,如果命令出错,请自行下载安装python和perl

perl:http://www.activestate.com/activeperl
python:https://www.python.org

5.附hash范例文档链接

https://hashcat.net/wiki/doku.php?id=example_hashes

关注我,不迷路!带你解锁更多姿势~

Do导航站:https://dh.do4444.top/