meta data for this page
This is an old revision of the document!
password cracking
file document.pdf document.pdf: PDF document, version 1.6, 1 page(s)
Use pdf2john to extract password hash:
/home/user/pdf2john/.venv/bin/pdf2john document.pdf $pdf$4*4*128*-12*1*16*<32 hex chars = 16bytes>*32*<hex chars>*32*<hex chars> /home/user/pdf2john/.venv/bin/pdf2john document.pdf > hash.txt
Install hashcat
apt install hashcat-nvidia
hashcat --help 10400 | PDF 1.1 - 1.3 (Acrobat 2 - 4) | Document 10410 | PDF 1.1 - 1.3 (Acrobat 2 - 4), collider #1 | Document 10420 | PDF 1.1 - 1.3 (Acrobat 2 - 4), collider #2 | Document 10500 | PDF 1.4 - 1.6 (Acrobat 5 - 8) | Document 25400 | PDF 1.4 - 1.6 (Acrobat 5 - 8) - user and owner pass | Document 10600 | PDF 1.7 Level 3 (Acrobat 9) | Document 10700 | PDF 1.7 Level 8 (Acrobat 10 - 11) | Document
Find password which is a PESEL number (11 digits)
# 1 2 3 4 5 6 7 8 9 0 1 hashcat -m 10500 hash.txt -a 3 --increment ?d?d?d?d?d?d?d?d?d?d?d