
How to Crack PDF File Password using John the Ripper
Hello guys, in this tutorial, we will show that how we can decrypt or crack the password of any PDF format file using " John the Ripper " tool. John the Ripper is a free password cracking software too
Hello guys, in this tutorial, we will show that how we can decrypt or crack the password of any PDF format file using "John the Ripper" tool. John the Ripper is a free password cracking software tool. Originally developed for the Unix operating system, it can run on fifteen different platforms. John the Ripper is an extremely fast password cracker which comes for many distributions of Unix, macOS, Windows, DOS, BeOS, and OpenVMS. The latter requires a contributed patch. Its primary purpose is to detect weak Unix passwords.
Let’s take a look 🙂 !!
Protect PDF File
There are many ways to secure your PDF files, which means that you can protect your file with both software or online service. But in our case we will choose an online service to protect our PDF file and we think it can be suitable for anyone.
| https://smallpdf.com/protect-pdf |

As you can see, we have successfully protect our PDF file which is currently in the root folder.

Basically we will first get hashes of the PDF file and then crack the password using those hashes. So we have to transfer our password-protected PDF file to the given location. After reaching the following location we can use the “pdf2john” tool.
Discover: Crack SSH Private Key with John the Ripper
| cp linux.pdf /usr/share/john/ cd /usr/share/john/perl pdf2john.pl |

Get Hashes of PDF File
We cannot directly crack the password of a PDF file through the “john the ripper” tool, so we have to get hashes of the PDF file. Just give us the location of the PDF file and the location where we want to save. After executing the command the hash will be automatically saved on your file which you can read by the cat command.
| perl pdf2john.pl linux.pdf > linux.hashescat linux.hashes |

Crack Password
Finally the time has come where we will try to crack the password of PDF file through “John the Ripper” tool. Just we need to provide the hashes of pdf file.
| john linux.hashes |

Great 🙂 !! As you can see, we have successfully obtained a valid password to unlock the PDF file.
Frequently Asked Questions
How does John the Ripper crack a PDF password?
What is pdf2john?
Is cracking PDF passwords legal?
Related Articles
Crack SSH Private Key with John the Ripper
The SSH private key code should not be just a decoration. Unfortunately, some people think they will never lose their SS
ViewHow To Bypass OTP Using Burp Suite | OTP Bypass Using BurpSuite
Ever wondered how those pesky One-Time Passwords (OTPs) that safeguard our online accounts can be bypassed? Well, you're
ViewSSH DDoS Attack Simulation Using Python: A Comprehensive Guide
Hey guys! 👋 Rocky here. Let’s talk about something wild but super important: DDoS attacks targeting SSH —and how Python
ViewCapture Android Traffic Remotely With Wireshark
As the world becomes increasingly mobile, capturing and analyzing Android traffic remotely has become a critical skill f
ViewHow to Hide a File in an Image: Steganography for Beginners
If, like me, privacy and data security are important to you in the modern digital age, then I will show you one interest
ViewBuilding Malware with Python: Writing Ransomware, Keyloggers & Reverse Shells from Scratch
Hey guys, Rocky here! 👋 So you're curious how malware actually works? Maybe you're wondering why ransomware is holding
ViewCOMMENTS (0)
Sign in to post intel on this briefing.