A command-line tool to crack password-protected compressed files using brute force.
Project description
CompressedCrack
CompressedCrack is a command-line tool that utilizes the brute-force method to crack any password-protected compressed file. It generates password combinations based on user-defined character sets and length range, and attempts to extract the archive using each generated password until the correct password is found.
Features
- Supports various compressed file formats (e.g., zip, rar, 7z) using
patoolib
library. - Allows customization of character sets (letters, numbers, special characters).
- Configurable minimum and maximum password lengths.
- Displays the found password, total number of attempts, and execution time.
- Verbose mode for detailed output during the cracking process.
Requirements
- Python 3.x
patoolib
library
To install the required library, run the following command:
pip install patoolib
Usage
main.py [-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.
Customizing Character Sets
When the script is started, the user will be asked for selecting character sets, including letters, numbers and special characters.
Default character sets:
- Letters:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
- Numbers:
0123456789
- Special characters:
!@#$%^&\*()-\_+=~[]{}|\:;"'<>,.?\
If no character types are selected, the script will use the combination of all default character sets.
Examples
Crack a password-protected file archive.zip
with a minimum password length of 3 characters, maximum password length of 5 characters, verbose output, and the custom character set is abcdef12345
:
python main.py --min-length 3 --max-length 5 --verbose archive.zip
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file testtesttestcommandline-0.0.4.tar.gz
.
File metadata
- Download URL: testtesttestcommandline-0.0.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef3e56233b9c9ff2a1ed4fa925359bcdf5679a73d499732ac9fe29e3c0741904 |
|
MD5 | 62d3752f7e94fe48c631b66c97186527 |
|
BLAKE2b-256 | a549acfb0c565f629983e3eaad54140c031104b0b5737c6fe7a9cd5b0951eaa3 |
File details
Details for the file testtesttestcommandline-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: testtesttestcommandline-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88624fa824f3c0ccc49df64dc2f8541bc39544134dae4dcf3fba1badfb842bf1 |
|
MD5 | 252246159598f16c93d9a89983d3bd26 |
|
BLAKE2b-256 | 5989519e12cb173269c80e61016b6d3f51c5412b47ffb94fe723db89f069b5c2 |