KeePass databases (.kdbx) looted from a share or a compromised host are frequent sources of privileged credentials. John the Ripper's keepass2john helper converts the database master-key parameters into a crackable hash, which john then attacks with a wordlist. It handles both password-only and keyfile-protected databases (pass the keyfile with -k). Fully offline; a recovered master password opens every secret in the vault.
Command Reference:
KeePass DB: Database.kdbx
Hash File: hashes.txt
Wordlist: /usr/share/wordlists/rockyou.txt
# extract the master-key hash from the .kdbxkeepass2johnDatabase.kdbx>hashes.txt# crack the master passwordjohn--wordlist=/usr/share/wordlists/rockyou.txthashes.txtjohn--showhashes.txt
A password-protected PKCS#12 certificate store (.pfx / .p12) recovered during collection can be opened offline. John the Ripper's pfx2john helper extracts the encryption parameters into a crackable hash, which john then brute-forces against a wordlist. Recovering the passphrase unlocks the private key and certificate, which can be used for PKINIT/Schannel authentication (e.g. via certipy or Rubeus). Runs entirely offline with no target interaction.
Command Reference:
PFX File: cert.pfx
Hash File: hashes.txt
Wordlist: /usr/share/wordlists/rockyou.txt
# extract the crackable hash from the .pfxpfx2johncert.pfx>hashes.txt# crack the passphrase (john auto-detects the pfx format)john--wordlist=/usr/share/wordlists/rockyou.txthashes.txtjohn--showhashes.txt