当前位置: 首页 > news >正文

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

http://www.lryc.cn/news/516413.html

相关文章:

  • 若依中Feign调用的具体使用(若依微服务版自身已集成openfeign依赖,并在此基础上定义了自己的注解)
  • 【算法题系列】LeetCode 5.最长回文子串|JavaScript 5种思路实现
  • 基于ROS先验地图的机器人自主定位与导航SLAM
  • nginx 1.6.3配置虚拟主机与rewrite-location匹配规则
  • 1130-host ... is not allowed to connect to this MySql serve
  • 力扣1502判断能否形成等差数列
  • Python版本变更历史及版本选择指南
  • 初始值变量类型
  • 苍穹外卖 项目记录 day03
  • 统计字符【2】(PTA)C语言
  • 如何在 Spring Cloud Gateway 中创建全局过滤器、局部过滤器和自定义条件过滤器
  • PINN模型详解
  • 查找路由器的管理后台ip【通用找IP】
  • AI如何改变IT行业
  • 运行vue项目,显示“npm”无法识别为 cmdlet、函数、脚本文件或可操作程序的名称
  • Kubernetes开发环境minikube | 开发部署apache tomcat web单节点应用
  • OpenCV相机标定与3D重建(44)初始化广角(鱼眼)相机的投影映射函数initWideAngleProjMap()的使用
  • 现代前端框架
  • Vue进阶(贰幺贰)npm run build多环境编译
  • 社交新零售下开源 AI 智能名片 2+1 链动模式 S2B2C 商城小程序的创新实践与发展剖析
  • xml格式化(1):使用python的xml库实现自闭合标签
  • 重温设计模式--13、策略模式
  • 【Rust自学】10.7. 生命周期 Pt.3:输入输出生命周期与3规则
  • 产品经理-竞品分析
  • 51单片机——8*8LED点阵
  • 力扣第136题:只出现一次的数字 巧用异或
  • TCP 如何获取端口信息
  • RabbitMQ发布确认高级篇(RabbitMQ Release Confirmation Advanced Edition)
  • 福建省乡镇界面数据arcgis格式shp乡镇名称和编码无偏移坐标内容测评
  • Kafka 消费者