John The Ripper

Cracking Files with John.

Notes and commands for Cracking Files with John..

2024-04-01
Tags passwordsjohn-the-rippercracking-files-with-john

We can also crack files using john.

It converts the file with tools to a hash that john can work with and crack.

cry0l1t3@htb:~$ <file_to_crack> > file.hash

cry0l1t3@htb:~$ pdf2john server_doc.pdf > server_doc.hash

cry0l1t3@htb:~$ john server_doc.hash

            # OR

cry0l1t3@htb:~$ john –wordlist=<wordlist.txt> server_doc.hash

find all Tools

  • Momothechi@htb[/htb]$ locate 2john

Many (but not all tools)

pdf2john Converts PDF documents for John

ssh2john Converts SSH private keys for John

mscash2john Converts MS Cash hashes for John

keychain2john Converts OS X keychain files for John

rar2john Converts RAR archives for John

pfx2john Converts PKCS#12 files for John

truecrypt_volume2john Converts TrueCrypt volumes for John

keepass2john Converts KeePass databases for John

vncpcap2john Converts VNC PCAP files for John

putty2john Converts PuTTY private keys for John

zip2john Converts ZIP archives for John

hccap2john Converts WPA/WPA2 handshake captures for John

office2john Converts MS Office documents for John

wpa2john Converts WPA/WPA2 handshakes for John