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

相关推荐
阿福不是狗3 小时前
Python使用总结之Mac安装docker并配置wechaty
python·macos·docker
gen_3 小时前
mac环境下的python、pycharm和pip安装使用
python·macos·pycharm
SY.ZHOU8 小时前
Significant Location Change
macos·ios·cocoa
buyue__11 小时前
MacOS解决局域网“没有到达主机的路由 no route to host“
macos
明月看潮生21 小时前
青少年编程与数学 01-011 系统软件简介 05 macOS操作系统
macos·青少年编程·操作系统·系统软件·编程与数学
Hello.Reader1 天前
Git 安装全攻略Linux、macOS、Windows 与源码编译
linux·git·macos
Hope Fancy1 天前
macOS 连接 Docker 运行 postgres,使用navicat添加并关联数据库
macos·docker·postgresql
John Song1 天前
macOS 上使用 Homebrew 安装redis-cli
数据库·redis·macos
yanjiee1 天前
编译一个Mac M系列可以用的yuview
macos