Recover passwords from PDFs

Many of us, for various reasons, password different types of documents or files, but many of us also forget it.

In the case of PDFs there is an application in Debian (and I assume in the rest of the distributions) called pdf crack and it is a command line utility. To install it we execute in console:

sudo aptitude install pdfcrack

To use it, we just have to indicate the option -f and the name of the pdf file whose password we have forgotten, like this:

pdfcrack -f archivo_pdf_con_clave.pdf

This method is still effective, but it loads the processor a lot, so it is advisable to use some of the options that the application brings, which are:

--charset=CHARSET Tries all combinations of the characters indicated in CHARSET.

--maxpw=INTEGER The maximum length for keys is INTEGER.

--minpw=INTEGER The minimum length for keys is INTEGER.

--wordlist=FILE Use the file FILE as a dictionary of words to test.

For more options consult the manual page: man pdfcrack

Leave a Comment

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

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   v3on said

    not brute force?

    1.    elav said

      It can be said that if ^ w ^

      1.    v3on said

        face: 3 n_n

  2.   Adoniz (@ NinjaUrbano1) said

    I had always wondered how pdfcrack is used and if it weren't for the turpial that I notice about the article, I wouldn't find out, thank you man for the contribution.

  3.   Nonamed said

    being brute force, a password of many characters may take years to find it xD

  4.   NayosX said

    Only one comment DOES NOT WORK WITH PASS (encrypted of course) OF 128bits, only with those of 64 down

  5.   ydv2125 said

    Its very useful post.