*2john utilities extract crackable hashes from password-protected files. The workflow is always the same: extract the hash, then crack it with john or feed it to hashcat with the right mode.
Office Documents
Covers.docx, .xlsx, .pptx (Office 2007+) and the legacy .doc, .xls, .ppt (Office 97-2003).
ZIP Archives
Classic PKZIP encryption and WinZip AES are different formats with different modes.RAR Archives
RAR3 and RAR5 use different algorithms;rar2john outputs both formats.
7-Zip
pdf2john handles the extraction.
KeePass
KeePass databases are high-value targets. They are slow to crack: use a targeted wordlist.SSH Private Keys
Passphrase-protected private keys (id_rsa, id_ed25519, etc.).
PFX / PKCS#12 Certificates
Password-protected PFX files found during post-exploitation.BitLocker
GPG Keys
John Flags
Quick Reference Table
| File Type | Extract | John Format | Hashcat Mode |
|---|---|---|---|
| Office 2007 | office2john | Office | 9400 |
| Office 2010 | office2john | Office | 9500 |
| Office 2013 | office2john | Office | 9600 |
| Office 2016+ | office2john | Office | 25300 |
| ZIP (classic) | zip2john | zip | 17200 |
| ZIP (WinZip AES) | zip2john | ZIP | 13600 |
| RAR3 | rar2john | rar | 12500 |
| RAR5 | rar2john | rar5 | 13000 |
| 7-Zip | 7z2john | 7z | 11600 |
| PDF (1.1-1.3) | pdf2john | pdf | 10400 |
| PDF (1.4-1.6) | pdf2john | pdf | 10500 |
| PDF (1.7+) | pdf2john | pdf | 10600 |
| KeePass | keepass2john | keepass | 13400 |
| SSH key | ssh2john | SSH | 22931 |
| PFX/PKCS#12 | pfx2john | pfx | 22500 |
| BitLocker | bitlocker2john | bitlocker | 22100 |
| GPG key | gpg2john | gpg | N/A |