John

Commands

Formats

john --list=formats

Crack SHA1

john  --format=raw-sha1 hash.txt

Crack MD5

john --format=raw-md5 hash.txt

Cracking Shadow Files

# Unshadow
unshadow passwd.txt shadow.txt > unshadowed.txt

# John
john /etc/shadow

# Wordlist
john --wordlist=<password.txt> /etc/shadow

Cracking Zip Files

# Zip to John
zip2john file.zip > ziphash.txt

# John
john --format=zip ziphash.txt

Crack .pfx File

pfx2john <pfx file> > hash.txt

john hash.txt --wordlist=<wordlist location>

Crack GPG Passphrase

Read More Here

gpg2john priv.key > hash 

john hash --wordlist=/usr/share/wordlists/rockyou.txt 

Crack SSH Passphrase

ssh2john /home/chinju/.ssh/id_rsa > ssh_hash.txt

john ssh_hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

REFERENCES

Last updated