PDF password bruteforcer
This is a small tool using Tinyscript and pypdf or pikepdf to bruteforce the password of a PDF given an alphabet (defaults to printables) and a length (default is 8).
$ pip install pypdf tinyscript
$ wget https://gist.githubusercontent.com/dhondta/efe84a92e4dfae3b6c14932c73ab2577/raw/pdf-password-bruteforcer.py && chmod +x pdf-password-bruteforcer.py && sudo mv pdf-password-bruteforcer.py /usr/bin/pdf-password-bruteforcer
Hi @Paulemeister !
Thank you for reporting this.
I have made some changes to the
bruteforce_re
function recently (when I figured outitertools.product2
caused an issue with concatenated ranges, e.g.[a-bA-B]
; this caused to generate the combinations of[a-b]
and[A-B]
).Can you tell me if you use one of the latest versions of Tinyscript (>=1.24.13), please ?
Edit: I tested your use case ; it works as expected.
logger.handlers[-1].terminator = ""
.