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 ( , i recommend the jumbo edition) and use its utility called pdf2john to extract the hash needed for john to crack:

PATH_TO/ 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):

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:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.