Skip to content

SahanPramuditha-Dev/Python-Password-Cracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Password & PDF Cracker

License: MIT Python 3.x

An educational tool demonstrating brute-force password cracking techniques through simulation and real PDF encryption attacks. This project is designed for learning purposes to illustrate cybersecurity concepts and password vulnerabilities.

Table of Contents

Features

  • Mode 1: Password Simulation: Analyze and simulate cracking numeric passwords using brute-force methods.
  • Mode 2: PDF Cracking: Perform real brute-force attacks on encrypted PDF files with an intuitive file selection dialog.
  • Live progress tracking with ANSI color output.
  • Support for parallel processing in auto mode for improved performance.
  • Option to save decrypted PDFs after successful cracking.

Sample Output

Mode 1:
HASH: b634e7fc... TRY: 017607000 H/s: 841k TIME:20.93s [░░░░░░░░░░░  1.76%]
✓ PASSWORD CRACKED! (12.38% keyspace, 15.33s)

Mode 2:
PDF: encrypted.pdf TRY: 012345 H/s: 95 TIME: 2.5s [████████░░░░ 50.00%]
✓ PDF PASSWORD CRACKED! (Password: 123456)

Installation

  1. Ensure you have Python 3.x installed on your system.
  2. Clone the repository or download the source code.
  3. Install the required dependencies:
pip install pikepdf

Usage

Run the script from the command line:

python ciperX.py
  1. Choose the desired mode:
    • Mode 1: Password simulation
    • Mode 2: PDF cracking
  2. For simulation mode: Enter a numeric PIN (1-10 digits) to simulate cracking.
  3. For PDF mode: Provide the path to the encrypted PDF file. Select whether you know the password length for optimized cracking. The auto mode utilizes parallel processing for faster results.
  4. After successful PDF cracking, you have the option to save the decrypted PDF.

Requirements

  • Python 3.x
  • pikepdf library for PDF manipulation (pip install pikepdf)

Technology

  • Pure Python implementation for password simulation demonstrations.
  • Utilizes pikepdf for handling real PDF encryption and decryption.
  • Features ANSI color support for enhanced terminal output.
  • Includes live progress bars and updates during cracking processes.
  • User-friendly file selection dialogs for PDF input.

Disclaimer

This tool is intended for educational purposes only. It demonstrates concepts related to password security and PDF encryption vulnerabilities. Do not use this tool for unauthorized access to systems, files, or data. The authors are not responsible for any misuse or illegal activities conducted with this software.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and ensure they are well-tested.
  4. Submit a pull request with a clear description of your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For questions, suggestions, or support, please open an issue on GitHub or contact the maintainer.

About

An educational Python tool that demonstrates dictionary-based password cracking and basic cybersecurity concepts.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages