mykb/docs/johntheripper.md
Till Dieminger 92c2d15a3e Update
2022-10-07 21:03:37 +01:00

753 B

JohnTheRipper

This is a bunch of scripts to crack a bunch of different passwords offline

Installation

git clone https://github.com/magnumripper/JohnTheRipper.git
cd JohnTheRipper/src
./configure && make

Usage

For pdfs

  1. Create a hash of the pdf you want to open

    cd JohnTheRipper/run
    ./pdf2john.pl <pdf file> > <output file>
    

    The output file will be a hash file of the meta info of the pdf. Will be refered to by hash-file from now on.

  2. Crack the hash

    cd JohnTheRipper/run
    ./john <hash file>
    
  3. Retrieve the password

    cd JohnTheRipper/run
    ./john --show <hash file>
    

    The password will be dispalyed the format of <path-to-pdf>:password

    /root/user/secred.pdf:54321