How to Install John the Ripper Jumbo on Ubuntu
How to Install John the Ripper Jumbo on Ubuntu
Introduction to John the Ripper
John the Ripper (JtR) is a powerful and versatile password-cracking software used by security professionals and enthusiasts. It supports a wide range of hash and cipher types, making it an essential tool for password recovery and security testing. The Jumbo version of John the Ripper includes additional features and enhancements for various types of password cracking, such as:
- 7z2john: Crack password-protected 7z files.
- rar2john: Crack password-protected RAR files.
- zip2john: Crack password-protected ZIP files.
- pdf2john: Crack password-protected PDF files.
- bitcoin2john: Crack Bitcoin wallet password hashes.
- keystore2john: Crack Android keystore password hashes.
- ssh2john: Crack SSH private key passphrases.
- vdi2john: Crack VirtualBox disk image passwords.
Step-by-Step Guide to Install John the Ripper Jumbo on Ubuntu
Step 1: Setup Directories and Install Dependencies
mkdir -p ~/src
sudo apt-get -y install git build-essential libssl-dev zlib1g-dev
Step 2: Install Recommended Packages for Extra Formats and Performance
sudo apt-get -y install yasm pkg-config libgmp-dev libpcap-dev libbz2-dev
Step 3: Install OpenCL Support for John the Ripper (Optional)
For NVIDIA GPUs
sudo apt-get -y install nvidia-opencl-dev
Follow the instructions here to install CUDA and the proprietary NVIDIA driver.
For AMD GPUs
sudo apt-get -y install ocl-icd-opencl-dev opencl-headers
Follow the instructions for installing the appropriate AMD drivers:
- AMDGPU-PRO Graphics Stack for recent GPUs and Ubuntu Xenial 16.04 LTS or above.
- fglrx Driver for older GPUs and Ubuntu up to 15.10.
Step 4: Install OpenCL Support for CPU (Optional)
sudo apt-get -y install ocl-icd-opencl-dev opencl-headers pocl-opencl-icd
Step 5: Clone the Latest Bleeding-Edge Jumbo Version and Build
Clone the Repository
cd ~/src
git clone https://github.com/openwall/john -b bleeding-jumbo john
Build John the Ripper
cd ~/src/john/src
./configure && make -s clean && make -sj4
Alternative: OpenMP Fallback Build for John the Ripper
cd ~/src/john/src
./configure --disable-openmp && make -s clean && make -sj4
mv ../run/john ../run/john-non-omp
./configure CPPFLAGS='-DOMP_FALLBACK -DOMP_FALLBACK_BINARY=""john-non-omp""'
make -s clean && make -sj4
Step 6: Optionally Install TAB-completion for John the Ripper
cd ~/src/john/src
sudo make shell-completion
Step 7: Test and Benchmark Your John the Ripper Build
Test the Build
cd ~/src/john/run
./john --test=0
Benchmark the Build (This Also Performs Self-Tests)
./john --test
Adding an Alias for John the Ripper Jumbo
To make it easier to run John the Ripper from any terminal, you can add an alias to your .bashrc
or .zshrc
file:
echo 'alias john="~/src/john/run/john"' >> ~/.bashrc
source ~/.bashrc
For zsh
users:
echo 'alias john="~/src/john/run/john"' >> ~/.zshrc
source ~/.zshrc
With this alias, you can simply type john
in the terminal to execute John the Ripper.
This completes the installation tutorial for John the Ripper Jumbo on Ubuntu. Enjoy exploring the powerful features and capabilities of John the Ripper!