This Python script attempts to crack the password of a PDF file using a brute-force attack. It iterates through all possible combinations of characters in a specified character set until it finds the correct password or exhausts all possibilities.
- Python 3.x
- PyPDF2 library
- Ensure you have Python installed on your system.
- Install the PyPDF2 library using pip:
pip install PyPDF2
- Clone or download this repository to your local machine.
- Place the PDF file you want to crack in the same directory as the
crackpdf.py
script. - Open a terminal or command prompt.
- Navigate to the directory containing the
crackpdf.py
script. - Run the script by executing the command:
python crackpdf.py
- Follow the on-screen instructions to provide the file name and maximum password length.
To clone this repository to your local machine, use the following command:
git clone https://github.com/tanujgupta18/pdf-password-cracker.git