Tag Archives: crack passwords

How to crack the password on a PDF file?

Once in a while you need to do this (in CTFs, not real life lol) .. so the easiest way is to install john the ripper ( https://www.openwall.com/john/ , i recommend the jumbo edition) and use its utility called pdf2john to extract the hash needed for john to crack:

PATH_TO/pdf2john.pl password-protected.pdf > pdf.john

Then start john and happy cracking 🙂

For the dictionary attack you can use the best list I ever saw (2019): https://github.com/danielmiessler/SecLists/tree/master/Passwords

Example with one of the files from the above repository:

john –wordlist=PATH_TO_DICTIONARY pdf.john

or for a brute-force approach

john –incremental:ASCII pdf.john

Good luck!

Simple, no? 🙂

PS: This cheat-sheet really helps: https://www.nekhbet.ro/wp-content/2019/09/jtr-cheat-sheet.pdf