This CLI tool provides the ability to brute force PDF file with 3 strategies.
-
Random
--random
characters -> you have the option to chosemin-length
andmax-length
of the random string -
Incrementally
--incremental
characters -> you have the option to choose the charset (--charset
) from which the incremental starts:i.
--charset letters
- will increment onabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
ii.
--charset digits
- will increment on0123456789
iii.
--charset special
- will increment on!@#$%^&*()
iv.
--charset all
- will increment on all of the above -
Wordlist
--wordlist
-> you should provide a path to a file with words to try seperated by comma (i.emypass,mypass1
)
Add --debug
flag for debug printing
Usage:
-
Clone this repository
git clone https://github.com/orevron/pdfCracker.git
-
Run
npm install
to install dependencies -
Run
npm run build
to build the ts script -
Run the script:
i.
node ./build/index.js /path/to/pdfFile.pdf --random
ii.
node ./build/index.js /path/to/pdfFile.pdf --incremental --charset digits-letters --debug
iii.
node ./build/index.js /path/to/pdfFile.pdf --wordlist /path/to/dict.txt
For good example project of word list of common passwords you can check this: https://github.com/danielmiessler/SecLists/tree/master