2024-macOS系统或Kail系统重——破解ZIP压缩的文件密码

1. 你们有遇见这样子的情况么:
- 别人给你发的zip或者下载的zip文件,没有密码打不开么
 - 网上都是win系统的,都是没有macOS系统的,所以比较烦恼

 
2. 所以我就想到了代码,破解zip软件包
- 如何解决这个问题呢,我先是从网上找到相关的资料
 - 然后一步一步来,就可以成功了
 
3. 好了,我现在开始装逼了,开始炫技了
3.1. 安装软件包:
- 先是安装软件
 
brew install fcrackzip
 
3.2. 然后打开终端输入
fcrackzip -h
 

- 就是张这样子的额:
 
fcrackzip -h
fcrackzip version 1.0, a fast/free zip password cracker
written by Marc Lehmann <pcg@goof.com> You can find more info on
http://www.goof.com/pcg/marc/
USAGE: fcrackzip
          [-b|--brute-force]            use brute force algorithm
          [-D|--dictionary]             use a dictionary
          [-B|--benchmark]              execute a small benchmark
          [-c|--charset characterset]   use characters from charset
          [-h|--help]                   show this message
          [--version]                   show the version of this program
          [-V|--validate]               sanity-check the algortihm
          [-v|--verbose]                be more verbose
          [-p|--init-password string]   use string as initial password/file
          [-l|--length min-max]         check password with length min to max
          [-u|--use-unzip]              use unzip to weed out wrong passwords
          [-m|--method num]             use method number "num" (see below)
          [-2|--modulo r/m]             only calculcate 1/m of the password
          file...                    the zipfiles to crack
methods compiled in (* = default):
 0: cpmask
 1: zip1
*2: zip2, USE_MULT_TAB
 
- 实在不会的,实在英语太笨的,我也给你做了详细的教程了:
 
使用: fcrackzip
[b|-brute-force] 使用暴力破解算法
[-D|--字典] 使用字典
[-B|--benchmark] 执行一个小基准
[-c|--字符集 characterset] 使用字符集中的字符
[-h|--帮助] 显示此信息
[--版本] 显示该程序的版本
[-V|--validate] 校验算法的正确性
[-v|--冗长] 更冗长
[-p|--初始密码字符串] 使用字符串作为初始密码/文件
[-l|--长度min-max] 用最小到最大的长度检查密码
[-u|--use-unzip] 使用解压缩来剔除错误的密码
[-m|--method num] 使用方法编号 "num"(见下文)
[-2|--modulo r/m] 只计算密码的 1/m
文件... 要破解的压缩文件
 
-c 指定字符集,字符集 格式只能为 -c 'aA1!:' 
a 表示小写字母[a-z]
A 表示大写字母[A-Z]
1 表示阿拉伯数字[0-9]
! 感叹号表示特殊字符[!:$%&/()=?{[]}+*~#]
: 表示包含冒号之后的字符(不能为二进制的空字符),例如  a1:$%  表示 字符集包含小写字母、数字、$字符和%百分号
-b 表示使用暴利破解的方式
-c 'aA1' 表示使用大小写字母和数字混合破解的方式
-l 1-10 表示需要破解的密码长度为1到10位
-u 表示只显示破解出来的密码,其他错误的密码不显示出
-D 表示要使用字典破解
-p 表示要使用那个字典破解
 
3.3. 所以使用方法:
3.3.1. 代码演示这是这个包,自动破译的:
- 输入命令
 
fcrackzip  -b -c 'aA1' -l 1-10   -u make_love.zip
# PASSWORD FOUND!!!!: pw == q13
 
3.3.2 也可以使用也可以使用现有密码本(就是自己的.txt文件的密码文件)
- 输入命令:
 
fcrackzip  -D -p pwd.txt  -u make_love.zip
# PASSWORD FOUND!!!!: pw == q13
 

 
破解成功了:




















