Skip to content

Instantly share code, notes, and snippets.

@athuan21
Forked from goffinet/jtrinstall.sh
Created May 20, 2021 17:26
Show Gist options
  • Save athuan21/39e850174b4563d7ddd0e3f5946f37d5 to your computer and use it in GitHub Desktop.
Save athuan21/39e850174b4563d7ddd0e3f5946f37d5 to your computer and use it in GitHub Desktop.
John the Ripper Installation for Centos 7/8
#!/bin/bash
# Centos 7/8 John the Ripper Installation
#release=(j 1.8.0)
release=(k 1.9.0)
# Check Centos version
if [ -f /etc/redhat-release ] ; then
source /etc/os-release
if [ $VERSION_ID == "8" ] ; then
packager=dnf
elif [ $VERSION_ID == "7" ] ; then
packager=yum
fi
else exit ; fi
${packager} -y install wget gpgme
${packager} -y group install "Development Tools"
cd
wget http://www.openwall.com/john/${release[0]}/john-${release[1]}.tar.xz
wget http://www.openwall.com/john/${release[0]}/john-${release[1]}.tar.xz.sign
wget http://www.openwall.com/signatures/openwall-signatures.asc
gpg --import openwall-signatures.asc
gpg --verify john-${release[1]}.tar.xz.sign
tar xvfJ john-${release[1]}.tar.xz
cd john-${release[1]}/src
make clean linux-x86-64
cd ../run/
./john --test
#password dictionary download
wget -O - http://mirrors.kernel.org/openwall/wordlists/all.gz | gunzip -c > openwall.dico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment