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 ๐ !!
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
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
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.
A keen learner and passionate IT student. He has done Web designing, CCNA, RedHat, Ethical hacking, Network & web penetration testing. Currently, he is completing his graduation and learning about Red teaming, CTF challenges & Blue teaming.
The gau (Get All URLs) tool is a versatile open-source utility that collects URLs from…
Jsluice++ is a Burp Suite extension designed for passive and active scanning of JavaScript traffic…
Hey Folks :) !! In this tutorial, we will describe some of the techniques commonly…
Hey Folks :) !! In this article, we present the "Termux Cheat Sheet for Hackers"…
Amid the rapid advancement of technology, the significance of human involvement in cybersecurity frequently goes…
Hey Folks, we are back today after such a long break, but don't worry we…
This website uses cookies.