TipNetCo

TipNetCo


How to crack PDF file passwords using John The Ripper ❓

Real life story

Once a guy gave me an encrypted PDF file and told to crack it. He said it contained an important file and password is
a date of birth he didn't know whose

What stuff I had❓

♦️ Kali Linux(Penetration OS)

♦️ John The Ripper(password cracking tool)

Why John ❓

John is basically one of the best password cracking tools
existing in this world. It can crack almost any encrypted stuffs

How to use ❓

First we're gonna make a hash of the file. My file is in the Desktop
folder.
The hash creator tool's name is
pdf2john.pl

🔅 In Kali, John can be launched from anywhere since it's in Binaries folder.
But hash creator tool is in the John folder

🔅So i needa locate it

root@kali~#: locate pdf2john.pl

And I got the location to be

/usr/share/john/pdf2john.pl

🔅 Next cmds

root@kali~#: cd /usr/share/john

root@kali~#: ./pdf2john.pl /root/Desktop/file.pdf > /root
Desktop/hash.hash

🔅 The first argument contains the location of the file, and the second argument mentions where to store the hash file

✴️ Creating wordlist

That guy told that its a DOB, so I am gonna use crunch to create a wordlist

root@kali~# crunch 8 8 1234567890 -0 /root/Desktop/wordlist.lst

🔅 Length of DOB is 8. So I mentioned 8. In order to get all the guesses, I mentioned
digits from 0 to 9. And file size was 848MB ❗️

✴️ Fire up John The Ripper🔥

🔅 Follow the below commands

root@kali~#: cd Desktop
(Where our hash file is located)

root@kali~#: john --wordlist=wordlist.lst hash.hash

It will take a while but crack the password

ENJOY ❤️


https://t.me/lkhitech/415

https://telegra.ph/TipNetCo-07-10-4

Report Page