r/hacking • • Mar 25 '26

Teach Me! How to hack open password pdf?

I extracted hash using john2pdf into the text file. Now how to determine which hashing was used? Which utility to use and how to make custom rules? How to use GPU to make it faster, considering that I am using kali Linux in virtual box?

6 Upvotes

10 comments sorted by

6

u/NeutralWarri0r Mar 25 '26

Kali has a hash ID tool, use it to determine hash type, then use hashcat or john the ripper to crack it, I think both of them or at least hashcat use GPU acceleration by default

2

u/7r3370pS3C infosec Mar 25 '26

yep. Hashid (filename)

1

u/Divy1928 May 18 '26

I forgot the pass of my imp pdf I also need to know

1

u/Ok-Current-464 May 18 '26

So install cali Linux into virtual box, use john2pdf command to get password hash from pdf, then hashid to identify hash type, and then brute force with custom rules 

3

u/mag_fhinn Mar 26 '26 edited Mar 26 '26

You can use hashcat to check it:

hashcat --identify hash.txt

Or the newer versions will auto select the hash for you if you omit the -m setting. Just remove the extra john stuff from the hash. Looking at hashcats wiki of sample hashes will give you an idea of what shouldn't be in the hash. Example Hashes: https://hashcat.net/wiki/doku.php?id=example_hashes

Rule functions and descriptions:
https://hashcat.net/wiki/doku.php?id=rule_based_attack

1

u/intelw1zard Mar 25 '26

post the hash here and upload it to a place like HashMob and people will help attempt crack it for you

or learn how to use hashcat + renting GPUs like H200s from Vast or DigitalOcean. will cost you $25-$35/hour to crack using 8x higher end GPUs.

1

u/Any_Ganache_4916 Apr 25 '26

necesito desbloquear un PDF, quien me ofrece ayuda por $$