Skip to content

EthicalPDFCracker 🌐: Educational PDF password cracker using multiprocessing & multithreading. Explore responsibly, showcasing parallel processing for ethical password cracking. πŸ”πŸ” #PDFCracking #EthicalHacking #PythonScripting

License

Notifications You must be signed in to change notification settings

Destroyer-official/Destroyer-PDF_Cracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“• EthicalPDFCracke πŸ”“

License: MIT Python

---

🚨 Disclaimer 🚨

IMPORTANT: Password cracking, even for educational purposes, can be risky and may violate ethical or legal standards. Always respect copyright and digital rights. Exercise caution and ensure you have the necessary permissions before attempting to crack any PDF passwords. This script is intended for educational use only to demonstrate parallel processing and password cracking techniques. It is not intended for malicious or unauthorized use.

🌟 Overview

The Parallel PDF Password Cracker utilizes parallel processing to explore password cracking techniques in a controlled educational environment. This Python script maximizes CPU utilization to accelerate password cracking attempts on encrypted PDF files.

πŸ“‚ Project Structure

.
β”œβ”€β”€ pdf_cracker.py
β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt
└── ...

πŸ› οΈ Features

  • Parallel Processing: Leverages multiprocessing and multithreading for faster password cracking.
  • Customizable Options: Fine-tune chunk size, process count, and thread count for optimal performance.
  • User-friendly Interface: Interact with the script seamlessly through a clear command-line interface.
  • Error Handling: Handles common file-related errors gracefully.
  • Logging: Provides detailed records for debugging and analysis.

πŸš€ Usage

  1. Clone the repository:

    git clone https://github.com/Destroyer-official/EthicalPDFCracker.git
  2. Navigate to the directory:

    cd EthicalPDFCracker
  3. Install the required packages:

    pip install -r requirements.txt
  4. Execute the script:

    python pdf_cracker.py -pdf <path_to_pdf_file> -pass <path_to_password_list>

Optional Arguments

  • -ch: Size of password chunks for parallel processing (default: 10000).
  • -pr: Number of parallel processes (default: 50).
  • -thr: Number of threads per process (default: 20).

Example Usage:

python pdf_cracker.py -pdf encrypted_file.pdf -pass passwords.txt -ch 10000 -pr 50 -thr 20

πŸ“š How It Works

The pdf_cracker.py script is designed to efficiently crack the password of encrypted PDF files by leveraging parallel processing. Here's a breakdown of its key components and functionality:

  1. πŸ” Password Decryption Attempt:

    • The script attempts to decrypt the PDF file using a list of passwords provided in the specified password list file.
  2. ⚑ Parallel Processing:

    • To expedite the cracking process, the script utilizes multiprocessing to parallelize password attempts. Each chunk of passwords is processed concurrently, making the most out of the available CPU cores.
  3. πŸ”„ Multithreading:

    • Within each process, multithreading is employed to further optimize performance. This allows multiple password attempts to be made simultaneously within a process.
  4. 🍱 Chunked Passwords:

    • Passwords are divided into chunks based on the specified chunk size. This allows for efficient distribution of password attempts across multiple processes.
  5. ⚠️ Error Handling:

    • The script incorporates robust error handling to gracefully manage common file-related errors. Any exceptions encountered during the decryption attempts are logged for further analysis.
  6. πŸ“ Logging:

    • Detailed logs are generated to record important events during the password cracking process. This includes information about successful password attempts or encountered errors.
  7. βš™οΈ Customizable Options:

    • Users have the flexibility to customize the chunk size, number of parallel processes, and number of threads per process through command-line arguments. This ensures adaptability to different hardware configurations.
  8. πŸšͺ Exit Upon Success:

    • As soon as the correct password is found, the script exits, and the correct password is displayed. This minimizes unnecessary processing once the goal is achieved.
  9. πŸŽ“ Educational Purpose Emphasis:

    • The script is developed strictly for educational purposes and is intended to showcase the principles of parallel processing in the context of password cracking. Users are reminded to use the script responsibly and adhere to ethical and legal standards.

By understanding these key components, users can gain insights into the inner workings of the script and appreciate the efficiency achieved through parallel processing for password cracking.

🀝 Contributing

Contributions are welcome! Fork the repository, make your enhancements, and create a pull request.

πŸ“œ License

βš–οΈ This project is licensed under the MIT License - see the LICENSE file for details.

About

EthicalPDFCracker 🌐: Educational PDF password cracker using multiprocessing & multithreading. Explore responsibly, showcasing parallel processing for ethical password cracking. πŸ”πŸ” #PDFCracking #EthicalHacking #PythonScripting

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages