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

相关推荐
芳草萋萋鹦鹉洲哦1 小时前
【vue3+tauri+rust】如何实现下载文件mac+windows
windows·macos·rust
梅名智18 小时前
IOS 蓝牙连接
macos·ios·cocoa
帅次1 天前
Objective-C面向对象编程:类、对象、方法详解(保姆级教程)
flutter·macos·ios·objective-c·iphone·swift·safari
fengyun28911 天前
fcpx音视频剪辑编辑 Final Cut Pro X(Mac电脑)
macos·mac
fengyun28911 天前
Mac电脑 卸载工具 App Cleaner
macos
aerror2 天前
Xbox One 控制器转换为 macOS HID 设备的工作原理分析
macos·xbox
晴风向上2 天前
mac mini m4安装node.js@16以下版本方法
macos·node.js
JPCstorm2 天前
Mac homebrew 安装教程
macos
秋窗72 天前
Mac 部署Latex OCR并优化体验(打包成App并支持全局快捷键)
macos·ocr·latex
FreeBuf_2 天前
朝鲜APT组织使用Nim语言恶意软件对macOS发起隐秘Web3与加密货币攻击
macos·web3·策略模式