CompressedCrack 是一个命令行工具,它利用暴力破解方法破解任何受密码保护的压缩文件。它根据用户定义的字符集和长度范围生成密码组合,并尝试使用每个生成的密码提取档案,直到找到正确的密码。
Github:https://github.com/mnismt/CompressedCrack
patoolib 库支持各种压缩文件格式(如zip、rar、7z)。您可以使用以下命令直接从 pip 安装 CompressedCrack:
pip install compressedcrack
compressedcrack [-h] [--min-length MIN_LENGTH] [--max-length MAX_LENGTH] [--verbose] file_path
Crack password-protected archives using brute force.
positional arguments:
file_path Path to the compressed file.
options:
-h, --help show this help message and exit
--min-length MIN_LENGTH
Minimum password length.
--max-length MAX_LENGTH
Maximum password length.
--verbose Increase output verbosity.
当脚本启动时,会要求用户选择字符集,包括字母、数字和特殊字符。
默认字符集:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&\*()-\_+=~[]{}|\:;"'<>,.?\如果未选择任何字符类型,脚本将使用所有默认字符集的组合。
破解受密码保护的文件 archive.zip,最小密码长度为 3 个字符,最大密码长度为 5 个字符,输出为verbose,自定义字符集为 abcdef12345:
compressedcrack --min-length 3 --max-length 5 --verbose archive.zip