Skip to content

This script is a password recovery tool specifically designed for decrypting encrypted PDF files. If you have a PDF file that is encrypted with a password but have since forgotten that password, this script can help you recover it.

License

Notifications You must be signed in to change notification settings

NathanCordeiro/PDF-Password-Crack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation


PDF Password Crack


Description

This Python script is designed to assist in decrypting and recovering the password for encrypted PDF files. There are two approaches beind used, a brute force approach to systematically try different combinations of characters until the correct password is found and a dictionary read to read all possible passwords from a dictionary.
This can be useful if you have forgotten the password to a PDF file that you encrypted yourself and need to regain access to its contents.

Features (BruteForce)

  • Brute force approach to password recovery
  • Supports specifying minimum and maximum password lengths
  • Customizable character set for generating password combinations
  • Progress tracking to monitor attempts and elapsed time

Features (Dictionary)

  • Dictionary password hit and miss
  • Reads all passwords in a dictionary line by line and returns which opens file
  • Supports an existing dictionary or customizable dictionary

Usage

  1. Install the required dependencies:

    pip install pikepdf
  2. Update the script with the path to your encrypted PDF file and specify the desired password length (optional).

  3. Run the script:

    python Bruteforce_crack.py

    or

    python Dictionary_crack.py
  4. Wait for the script to finish running. If the correct password is found, it will be printed along with the elapsed time.

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

Acknowledgements

  • This script utilizes the pikepdf library for working with PDF files.

Important

This script is provided for educational and informational purposes only. Use it responsibly and ensure that you have the legal right to access the PDF file you are attempting to decrypt.

About

This script is a password recovery tool specifically designed for decrypting encrypted PDF files. If you have a PDF file that is encrypted with a password but have since forgotten that password, this script can help you recover it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages