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目录为环境变量

相关推荐
pe7er7 小时前
macOS 应用无法打开(权限问题)解决方案
macos·mac
harmful_sheep3 天前
mac生效的终端查看
macos
iOS门童4 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~4 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
差不多程序员4 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl843944 天前
mac 安装python
开发语言·python·macos
Bruce_Liuxiaowei4 天前
在 macOS 上通过 Docker 本地安装 OpenClaw 完整教程
macos·docker·容器·openclaw
阿捏利4 天前
详解Mach-O(十五)Mach-O __DATA_CONST
macos·ios·c/c++·mach-o
ShikiSuen4 天前
macOS 的 CpLk 中英切换卡顿的元凶在 InputMethodKit 本身
macos
xiayutian_c4 天前
如虎添翼-MacOS
macos