Steps I follow:
- I protected a PDF with a long password (I am trying with 38 characters password).
- I created a dictionary that contains the password to crack the PDF with John the Ripper.
- I run
john --wordlist=mydictionary.txt pdfhash.txt
and John is unable to crack the password.
This only happens with long passwords, with small passwords John is working fine. You can try.
Possible matters:
- PDF stores long passwords differently from normal ones.
- John The Ripper doesn't read long passwords in the dictionary well.
I want to know how exactly the system works to learn to crack properly with John.