Sponsored
Password Cracking

How to Crack PDF File Password using John the Ripper

Hey 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 a fast password cracker, currently available 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.

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.hashes
cat 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.

About the Author
Shubham Goyal Certified Ethical Hacker, information security analyst, penetration tester and researcher. Can be Contact on Linkedin.
Sponsored

Recent Posts

Termux Cheat Sheet for Hackers

Hey Folks :) !! In this article, we present the "Termux Cheat Sheet for Hackers"…

1 month ago

Cracking the X-Factor in Cybersecurity: How Humans are Protecting the Systems?

Amid the rapid advancement of technology, the significance of human involvement in cybersecurity frequently goes…

8 months ago

Cariddi – Hidden Endpoint Finder for Bug Hunting

Hey Folks, we are back today after such a long break, but don't worry we…

2 years ago

API Security Testing 101: Know Everything About API Security Testing!

The security of your API should be one of the top priorities of companies. Without…

2 years ago

7 Best Tools for Web Penetration Testing: Comprehensive Details

Hey Folks, In today's business world, it is essential to have an online presence. However,…

2 years ago

Cyber Security Audits: Everything You Need to Know About It

Hey Folks, Is your business prepared in case of a cyber attack? Many companies don't…

2 years ago
Sponsored

This website uses cookies.