Table of Contents
Summery
Tool of John The Ripper.
John will output the cracked passwords to the console and the file “john.pot” (~/.john/john.pot) to the current user’s home directory. Furthermore, it will continue cracking the remaining hashes in the background, and we can check the progress by running the john --show command.
Commands
pdf2john.py PDF.pdf > pdf.hash - Get a given hash to crack
john --format=sha256 hashes_to_crack.txt - Basic command
sudo john shadow.txt --format=crypt --wordlist=/usr/share/wordlists/rockyou.txt - You can crach hashcrypt with john like this.
john --wordlist=ssh.passwords --rules=sshRules ssh.hash - Run a john rule-based attack
Rules
To create a custom rule list for john you need to append it to the /etc/john/john.conf, below is an example of such addition:
[List.Rules:sshRules]
c $1 $3 $7 $!
c $1 $3 $7 $@
c $1 $3 $7 $#Common 2johns
Here’s a list of XYZ2John modules I know of.
bitlocker2john
dmg2john
gpg2john
hccap2john
keepass2john
putty2john
racf2john
rar2john
uaf2john
vncpcap2john
wlanhcx2john
wpapcap2john
zip2john
1password2john.py
7z2john.pl
DPAPImk2john.py
adxcsouf2john.py
aem2john.py
aix2john.pl
aix2john.py
andotp2john.py
androidbackup2john.py