Ubuntu Geek

Ubuntu Linux Tips,Howtos&Tutorials|Edgy,Feisty,Gutsy,Hardy,Intrepid

  • RSS Feed

    subscribe to the ubuntu Geek RSS feed


  • Sponsor



  • Categories

  • Meta

  • Sponsor

  • Archives

  • Support Ubuntugeek

    Amount $:
    Website(Optional):


  • Favourite Sites

Howto Crack pdf File Password

Posted by admin on April 14th, 2008 Email This Post Email This Post

If you want to crack pdf file passwords use pdfcrack.PDFCrack is a GNU/Linux (other POSIX-compatible systems should work too) tool for recovering passwords and content from PDF-files. It is small, command line driven without external dependencies. The application is Open Source (GPL).

pdfcrack Features

Supports the standard security handler (revision 2 and 3) on all known PDF-versions

Supports cracking both owner and userpasswords

Both wordlists and bruteforcing the password is supported

Simple permutations (currently only trying first character as Upper Case)

Save/Load a running job

Simple benchmarking

Optimised search for owner-password when user-password is known

Install pdfcrack in Ubuntu

sudo aptitude install pdfcrack

This will complete the installation.

pdfcrack Syntax

pdfcrack -f filename [options]

pdfcrack Options

-b, - -bench - Perform benchmark and exit.
-c, - -charset=STRING - Use the characters in STRING as charset.
-m, - -maxpw=INTEGER - Stop when reaching INTEGER as password length.
-n, - -minpw=INTEGER - Skip trying passwords shorter than INTEGER.
-l, - -loadState=FILE - Continue from the state saved in FILENAME.
-o, - -owner - Work with the ownerpassword.
-p, –password=STRING - Uses STRING as userpassword to speed up breaking ownerpassword (implies -o).
-q, - -quiet - Run quietly.
-s, - -permutate - Try permutating the passwords (currently only supports switching
first character to uppercase).
-u, - -user - Work with the userpassword (default).
-v, - -version - Print version and exit.
-w, - -wordlist=FILE - Use FILE as source of passwords to try.

pdfcrack Examples

pdfcrack test.pdf

pdfcrack options and examples

Share/Save/Bookmark

If you want to be notified the next time we write something please subscribe to our RSS feed.Thanks for Visiting!

Related Articles

8 Responses to “Howto Crack pdf File Password”

  1. Erik RIngmar Says:

    Hiya,

    I get an error message “First trailer not found.”

    what to do?

    Erik

  2. Kidd Says:

    I’n no Guro but i would like to help. What command are you typing in?

  3. Asbjørn Says:

    Hi.

    I was once told that one may omit the PDF password functionality by simply using ImageMagick (’convert pdf_with_password.pdf pdf_without_password.pdf’). This won’t find the password for you, but will help you read the PDF.

  4. thx Says:

    luv u 4 this!

  5. micheas Says:

    using a dictionary from The Argon Word Lists will tend to get much faster results.

  6. iansane Says:

    any options for adobe digital additions downloads? pdfcrack and imagemagick convert produce error: unknown security handler.

    Anyone know how to convert those into regular pdf’s? even after purchaceing them they can only be read on an authorised machine with digital additions. Try to open them like a regular pdf and they are password protected

  7. robinzoni Says:

    @ Asbjørn
    Many thanks for your Tip. It did, indeed, work for me. Imagemagick solved the problem astonishingly simple.

    Best.

    ps: Just for the record. I assume the success does depend on the encryption method, though. Since I could ’see’ the content of my pdf’s but was not allowed to manipulate them (extract particular pages, copy text, etc.) it worked like a charm.

  8. stan Says:

    I guess that’s what all that processor power in a home pc is for…

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>