This is an old revision of the document!
Use John The Ripper to crack password hashes
prepare shadow and passwd files for john
first unshadow your passwd
and shadow
files
../run/unshadow ~/tmp/passwd ~/tmp/shadow > ~/tmp/unshadow
use john with openMP on multiple cores
export OMP_NUM_THREADS=8 john ~/tmp/unshadow
use john with multiple cores by forking the process
john --fork=8 ~/tmp/unshadow
query the results
john --show ~/tmp/unshadow
compile john with MPI support to run on clusters
ubuntu dependencies
sudo apt install libopenmpi-dev openmpi-bin
centos dependencies / preparation:
yum install openmpi-devel openmpi openssl-devel module load mpi/openmpi-x86_64
get source and compile:
wget https://github.com/openwall/john/archive/1.9.0-Jumbo-1.tar.gz tar xvf 1.9.0-Jumbo-1.tar.gz cd john-1.9.0-Jumbo-1/src ./configure --enable-mpi make -s clean && make -sj4
now run it :)
mpirun -np 8 -host localhost,localhost,localhost,localhost,localhost,localhost,localhost,localhost ../run/john ~/tmp/unshadow
to check the progress run
kill -USR1 $(pidof mpirun)