macos\Linux下使用fcrackzip破解zip压缩文件密码

加密解密:http://www.lybbn.cn/data/datas.php?yw=133

1.fcrackzip简介

fcrackzip是一款专门破解zip类型压缩文件密码的工具,工具小巧方便、破解速度快,能使用字典和指定字符集破解,适用于linux、mac osx 系统

2.fcrackzip安装

1

brew install fcrackzip

3.fcrackzip参数介绍

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

lysmacbookair:Desktop laoyan$ fcrackzip -h

fcrackzip version 1.0, a fast/free zip password cracker

written by Marc Lehmann <[email protected]> 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

部分重要参数说明

1

2

3

4

5

6

-c 指定字符集,字符集 格式只能为 -c 'aA1!:' 

a 表示小写字母[a-z]

A 表示大写字母[A-Z]

1 表示阿拉伯数字[0-9]

! 感叹号表示特殊字符[!:$%&/()=?{[]}+*~#]

: 表示包含冒号之后的字符(不能为二进制的空字符),例如  a1:$%  表示 字符集包含小写字母、数字、$字符和%百分号

具体请参考

1

man fcrackzip

4.fcrackzip案例

假如有一个文件123lybbn.zip文件加密,密码为qsb的弱密码,我们可使用fcrackzip暴利破解

1

2

lysmacbookair:Desktop laoyan$ fcrackzip  -b -c 'aA1' -l 1-10   -u 123lybbn.zip

PASSWORD FOUND!!!!: pw == qsb

这里测试只需要几秒钟就破解出来了,速度是不是非常的快

参数解释:

1

2

3

4

-b 表示使用暴利破解的方式

-c 'aA1' 表示使用大小写字母和数字混合破解的方式

-l 1-10 表示需要破解的密码长度为1到10位

-u 表示只显示破解出来的密码,其他错误的密码不显示出

如果想要使用现有的字典破解的话,你可以写成如下形式

1

2

lysmacbookair:Desktop laoyan$ fcrackzip  -D -p lybbnpass.txt  -u 123lybbn.zip

PASSWORD FOUND!!!!: pw == qsb

参数解释:

1

2

-D 表示要使用字典破解

-p 表示要使用那个字典破解

猜你喜欢

转载自blog.csdn.net/XiangLanLee/article/details/83828282