Skip to main content

A command-line tool to crack password-protected compressed files using brute force.

Project description

CompressedCrack

Banner

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

Example

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

compressedcrack-1.0.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

compressedcrack-1.0.3-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file compressedcrack-1.0.3.tar.gz.

File metadata

  • Download URL: compressedcrack-1.0.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for compressedcrack-1.0.3.tar.gz
Algorithm Hash digest
SHA256 7f739e50a26340b29273cd1aa18dca0b78de940d485feb03f4327c5a8860e2b1
MD5 af94f0d5d920a4deadf3ad35c6da95e1
BLAKE2b-256 fc52e6c559157015d51f2de0b59e49e0a8f0ee4d23fa3eb6c155fb0ebf257653

See more details on using hashes here.

File details

Details for the file compressedcrack-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for compressedcrack-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f50452cd721e4d4634c8616baadccf7532585baa200c7349c8f42e68926ba0f2
MD5 440122af37be01b943dcab1719ee48ed
BLAKE2b-256 08d6bec248a9d19b3ec812dceddb57453394e0701f322b807cbb7d9e5f716b7d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page