Coder Social home page Coder Social logo

pdfcrack-ng's Introduction

pdfcrack-ng (pdfcrack next generation)

pdfcrack-ng is a simple tool written in C to recover forgotten passwords from PDFs.

It should be able to handle all PDFs that uses the standard security handler but the PDF-parsing routines are a bit hacky. You might stumble across some PDFs where the parser needs to be fixed to handle them.

Features

  • Owner- and/or user-passwords with the Standard Security Handler revision 2, 3 and 5.
  • Multithreading enabled by default.
  • Search by wordlist or brute-forcing with auto or specific charset.
  • Search by:
    • Optimized search for owner-password when user-password is known or unset.
    • Simple optional permutation of passwords which makes first letter uppercase.

When brute-forcing with charsets:

  • It auto-saves the current state when interrupted (Ctrl-C or SIGINT to the process) and resumes on next try.
  • Optional minimum password length
  • Optional maximum password length

Installation

You don't need any external libraries. Just run:

$ mkdir build && cd build
$ cmake ..           # or 'gmake ..' if you have BSD-make as default
$ cmake --build .    # you will find the binaries in "build/bin/"
$ sudo cmake --install .

Tricks

  • Sort your wordlist by length for best performance and consider, that almost all passwords in PDFs are in iso latin 1. Use the correct character encoding in your terminal and/or wordlist when using special characters.
  • To build a package for multi CPU envelopment remove -march=native and -mtune=native from the CMakeLists.txt.

Semantic Versioning

This repository uses SemVer for its release cycle.

Branching Model

This repository uses the git-flow branching model by Vincent Driessen. It has two branches with infinite lifetime:

The master branch gets updated on every release. The develop branch is the merging branch.

License & Credits

Copyright © 2016-2021 Michael Sasser [email protected]. Released under the GPLv3 license.
Copyright © 2006-2015 Henning Norén.
Copyright © 2009-2009 Andreas Meier and Michael Kuhn.
Copyright © 1996-2005 Glyph & Cog, LLC.

Code and documentation are originally written by Henning Norén and extended by Andreas Meier and Michael Kuhn. Henning Norén was inspired by xpdf and poppler and derived/copied parts of them to pdfcrack.c and md5.c.

xpdfand and poppler are Copyright © 1995 Glyph & Cog, LLC.

The PDF data structures, operators, and specification are &copy Copyright 1985 Adobe Systems Inc.

pdfcrack-ng's People

Contributors

michaelsasser avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.