compressedcrack


Namecompressedcrack JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/mnismt/CompressedCrack
SummaryA command-line tool to crack password-protected compressed files using brute force.
upload_time2024-05-08 15:57:08
maintainerNone
docs_urlNone
authorMinh Thanh
requires_python>=3.6
licenseMIT License Copyright (c) 2017 - 2024 Doan Tran Minh Thanh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords brute force password cracking compressed files
VCS
bugtrack_url
requirements patool
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CompressedCrack

![Banner](./assets/banner.png)

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](./assets/example.gif)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mnismt/CompressedCrack",
    "name": "compressedcrack",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "brute force, password cracking, compressed files",
    "author": "Minh Thanh",
    "author_email": "Minh Thanh <thanhdoantranminh@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/fc/52/e6c559157015d51f2de0b59e49e0a8f0ee4d23fa3eb6c155fb0ebf257653/compressedcrack-1.0.3.tar.gz",
    "platform": null,
    "description": "# CompressedCrack\n\n![Banner](./assets/banner.png)\n\nCompressedCrack 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.\n\n## Features\n\n- Supports various compressed file formats (e.g., zip, rar, 7z) using `patoolib` library.\n- Allows customization of character sets (letters, numbers, special characters).\n- Configurable minimum and maximum password lengths.\n- Displays the found password, total number of attempts, and execution time.\n- Verbose mode for detailed output during the cracking process.\n\n## Requirements\n\n- Python 3.x\n- `patoolib` library\n\nTo install the required library, run the following command:\n\n```\npip install patoolib\n```\n\n## Usage\n\n```\nmain.py [-h] [--min-length MIN_LENGTH] [--max-length MAX_LENGTH] [--verbose] file_path\n\nCrack password-protected archives using brute force.\n\npositional arguments:\n  file_path             Path to the compressed file.\n\noptions:\n  -h, --help            show this help message and exit\n  --min-length MIN_LENGTH\n                        Minimum password length.\n  --max-length MAX_LENGTH\n                        Maximum password length.\n  --verbose             Increase output verbosity.\n\n```\n\n### Customizing Character Sets\n\nWhen the script is started, the user will be asked for selecting character sets, including letters, numbers and special characters.\n\nDefault character sets:\n\n- Letters: `abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`\n- Numbers: `0123456789`\n- Special characters: `!@#$%^&\\*()-\\_+=~[]{}|\\:;\"'<>,.?\\`\n\nIf no character types are selected, the script will use the combination of all default character sets.\n\n## Examples\n\nCrack 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`:\n\n```\npython main.py --min-length 3 --max-length 5 --verbose archive.zip\n```\n\n![Example](./assets/example.gif)\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2017 - 2024 Doan Tran Minh Thanh  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A command-line tool to crack password-protected compressed files using brute force.",
    "version": "1.0.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/mnismt/CompressedCrack/issues",
        "Homepage": "https://github.com/mnismt/CompressedCrack"
    },
    "split_keywords": [
        "brute force",
        " password cracking",
        " compressed files"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "08d6bec248a9d19b3ec812dceddb57453394e0701f322b807cbb7d9e5f716b7d",
                "md5": "440122af37be01b943dcab1719ee48ed",
                "sha256": "f50452cd721e4d4634c8616baadccf7532585baa200c7349c8f42e68926ba0f2"
            },
            "downloads": -1,
            "filename": "compressedcrack-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "440122af37be01b943dcab1719ee48ed",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6235,
            "upload_time": "2024-05-08T15:57:06",
            "upload_time_iso_8601": "2024-05-08T15:57:06.376011Z",
            "url": "https://files.pythonhosted.org/packages/08/d6/bec248a9d19b3ec812dceddb57453394e0701f322b807cbb7d9e5f716b7d/compressedcrack-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc52e6c559157015d51f2de0b59e49e0a8f0ee4d23fa3eb6c155fb0ebf257653",
                "md5": "af94f0d5d920a4deadf3ad35c6da95e1",
                "sha256": "7f739e50a26340b29273cd1aa18dca0b78de940d485feb03f4327c5a8860e2b1"
            },
            "downloads": -1,
            "filename": "compressedcrack-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "af94f0d5d920a4deadf3ad35c6da95e1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5322,
            "upload_time": "2024-05-08T15:57:08",
            "upload_time_iso_8601": "2024-05-08T15:57:08.611743Z",
            "url": "https://files.pythonhosted.org/packages/fc/52/e6c559157015d51f2de0b59e49e0a8f0ee4d23fa3eb6c155fb0ebf257653/compressedcrack-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-08 15:57:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mnismt",
    "github_project": "CompressedCrack",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "patool",
            "specs": [
                [
                    "==",
                    "2.2.0"
                ]
            ]
        }
    ],
    "lcname": "compressedcrack"
}
        
Elapsed time: 0.55669s