压缩文件密码破解

操作系统:kali linux

操作工具:fcrackzip、rarcrack

一、fcrackzip

1、下载工具:apt-get install fcrackzip

2、查看帮助文档 fcrackzip -help

  

[-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 algorithm
[-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 passwordfile... the zipfiles to crack

3.1、暴力破解法破解zip文件密码

  命令格式fcrackzip -b -c 'aA1!' -l min-max -u [文件路径]

  -b: 采用暴力破解

  -c: 字符   a:表示小写   A:表示大写   1:表示数字   !:表示特殊符号

  -l: 密码长度

  -u:需破解的文件

3.2、字典破解zip文件密码

  命令格式:fcrackzip -D -p [字典路径] -u [文件路径]

二、rarcrack

用于破解rar、zip、7z格式

1、下载 apt-get install rarcrack

2、 帮助文档 rarcrack --help

Usage: rarcrack encrypted_archive.ext [--threads NUM] [--type rar|zip|7z]

Options: --help: show this screen.
--type: you can specify the archive program, this needed when
the program couldn't detect the proper file type
--threads: you can specify how many threads
will be run, maximum 12 (default: 2)

Info: This program supports only RAR, ZIP and 7Z encrypted archives.
RarCrack! usually detects the archive type.

3、格式 rarcrack [文件名] --thread [线程大小] --type [文件类型]

根据电脑配置选择线程大小,线程越大破解速度越快 ,根据类型选择tpye

4、运行命令后会在该目录下形成一个后缀为xml的文件

暂停运行,打开xml的文件,在里面设置范围以及密码长度,保存退出后再次开启命令

posted @ 2020-03-19 15:27  Amary_Lily  阅读(860)  评论(0)    收藏  举报