Como crackear un pdf con clave

Philippe Delteil
Sep 3, 2018 · 1 min read

Obtener la clave que permite abrir un archivo pdf.

Archivo objetivo PDF v1.6

Instalación de John the ripper

sudo snap install john-the-ripper

Instalación de bleeding-jumbo (Ubuntu 17/18)

wget https://github.com/magnumripper/JohnTheRipper/archive/bleeding-jumbo.zip  
unzip bleeding-jumbo.zip

Extraer el hash

perl JohnTheRipper-bleeding-jumbo/run/pdf2john.pl MyPDF.pdf | awk -F":" '{ print $2}' > MyPDF-Hash.txt

Utilizar john the ripper para reversar el hash, utilizando un wordlist que viene incluido con el programa.

john --wordlist=/usr/share/wordlists/rockyou.txt MyPDF-Hash.txt

Y esto debería retornar la clave de encriptación. Debes notar que la lista de palabras que utilizamos está basada en un diccionario en inglés, por lo que si la clave está basada en otro idioma tienes dos alternativas: usar fuerza bruta o utilizar un wordlist basado en otro idioma.

Hacking/Security

Escritos relacionados a hacking, cybersecurity y todo lo asociado, parecido y similar.

Philippe Delteil

Written by

Hacking/Security

Escritos relacionados a hacking, cybersecurity y todo lo asociado, parecido y similar.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade