mac 使用zip2john破解zip压缩包密码

一、下载:

复制代码
git clone https://github.com/magnumripper/JohnTheRipper.git
cd JohnTheRipper/src 
./configure
sudo make -s clean && sudo make -sj4
cd ../run

二、使用:

zip2john提取提取 ZIP 文件的哈希:

复制代码
./zip2john protected.zip > hash.txt

然后用 john 破解:

复制代码
./john hash.txt

测试结果:

复制代码
likaige@Eves-MacBook-Pro run % ./john ../../hash.txt 
Warning: invalid UTF-8 seen reading ../../hash.txt
Using default input encoding: UTF-8
Loaded 1 password hash (PKZIP [32/64])
Note: Passwords longer than 21 [worst case UTF-8] to 63 [ASCII] rejected
Proceeding with single, rules:Single
Press 'q' or Ctrl-C to abort, 'h' for help, almost any other key for status
Almost done: Processing the remaining buffered candidate passwords, if any.
0g 0:00:00:00 DONE 1/3 (2025-01-05 23:19) 0g/s 3053Kp/s 3053Kc/s 3053KC/s Obj1900..Zip1900
Proceeding with wordlist:./password.lst
Enabling duplicate candidate password suppressor
**qw123456**         (test.zip)     
1g 0:00:00:00 DONE 2/3 (2025-01-05 23:19) 7.692g/s 528784p/s 528784c/s 528784C/s peekaboo..piccolo
Use the "--show" option to display all of the cracked passwords reliably
Session completed. 

三、配置run目录为环境变量

相关推荐
Web3&Basketball6 分钟前
Meta Muse 816B 实测:两台 Mac 本地跑通
macos·大模型·mac·本地部署·moe·显存优化·meta muse
DevLoom_26 分钟前
macOS 27 升级翻车怎么降级?不用终端,2 种方案实测回退旧系统
macos·macos27·mac系统降级·macos安装盘·mac使用技巧
向着光芒的女孩5 小时前
【Mac】腾讯视频会议在Mac电脑屏幕共享失败解决方案
macos
あ-1 天前
mac dbeaver安装后显示数据包损坏
macos
钱栈up1 天前
从 macOS 切回 Windows,我用 5 个免费工具把 80% 操作习惯搬了回来
windows·macos·策略模式
9144062321 天前
mac Git 账户切换问题
git·macos
铁锚1 天前
清理macos系统DS_Store文件的sh脚本
macos
Hello_Pyhx1 天前
CrossPaste 跨系统剪贴板配置:按发现、配对、同步逐层排查
macos·电脑
king13598745502 天前
LFM2.5-24B-A2B Mac 本地部署:内存估算、GGUF/MLX 与 Python 预检脚本
人工智能·macos
骑着蜗牛撵大象3272 天前
链路层不只是 MAC:以太网帧、ARP 与 802.1Q VLAN 的逐跳拆解
计算机网络·macos·ar·vlan·mac地址·链路层