How to install John the Ripper and Johnny on Windows with GPU support

John the Ripper is a password cracking program that can brute-force passwords for many types of files: archives, office documents, can crack network protocol hashes, and much more.

John the Ripper is a command line utility, so using it requires command line skills and knowledge of John the Ripper options.

Johnny is a graphical interface for John the Ripper that makes it easy to use the popular password cracker.

John the Ripper is portable; to install it, just unpack the downloaded archive with this program. Johnny is also a portable program distributed in an installer file. Johnny requires John the Ripper to work, which means both programs need to be installed.

The installation of these programs is simple, but John can only use the CPU to brute force the password, but it cannot use the GPU. Cracking a password on a video card is many times faster than on a central processor, so I would like to add support for a graphics card, especially since it is possible.

This tutorial will show you how to install John the Ripper and Johnny on Windows so that you can crack passwords on your video card.

How to install John the Ripper on Windows with GPU support (OpenCL)

Install Cygwin first – just go to the official website https://www.cygwin.com/, download the setup-x86_64.exe file and install.

Download the winX64_1_JtR.7z file from https://github.com/openwall/john-packages/releases/tag/jumbo-dev.

Unzip the contents of this archive into the C:\cygwin64\home\<USERNAME> folder, for example, my username is MiAl, so I unpack it to C:\cygwin64\home\MiAl\. Please note that you need to create a folder and copy files into it on behalf of a regular user, because during its work John the Ripper will try to write data to a .pot file in the same folder where the program is running. If you copied the JtR folder in the file manager with elevated rights, then this folder will belong to the Administrator and it is impossible to write anything into it or change the rights to it.

Now in the folder C:\cygwin64\home\<USERNAME>\JtR\run\ find cygOpenCL-1.dll file and rename it to cygOpenCL-1.dll.bac.

Then in the c:\Windows\System32 folder find the OpenCL.dll file and copy it to the C:\cygwin64\home\<USERNAME>\JtR\run\ folder.

Then, in the C:\cygwin64\home\<USERNAME>\JtR\run\ folder, rename the OpenCL.dll file to cygOpenCL-1.dll.

Then the same procedure must be repeated for the file in the C:\cygwin64\bin\ folder. That is, in the C:\cygwin64\bin\ folder, find cygOpenCL-1.dll and rename it to cygOpenCL-1.dll.bac. Then find the OpenCL.dll file in the c:\Windows\System32 folder and copy it to the C:\cygwin64\bin\ folder. Finally, in the C:\cygwin64\bin\ folder, rename the OpenCL.dll file to cygOpenCL-1.dll.

So that you understand why we are doing all this, take a look at the cracking speed on the central processor:

And on the speed of hacking on the video card, which became available thanks to the actions shown above with the substitution of files:

Open Cygwin console to execute commands.

Run test:

~/JtR/run/john --test=0

Run your system benchmark:

~/JtR/run/john --test

How to install Johnny on Windows with GPU support (OpenCL)

Open Cygwin – we'll be compiling Johnny from source.

Install apt-cyg:

curl https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
install apt-cyg /bin

See also: apt-cyg – apt for Cygwin

Install dependencies:

apt-cyg install gcc-g++ git libQt5Core-devel make libQt5Gui-devel libGL-devel xorg-server xinit

Download the source code and compile the program:

git clone https://github.com/shinnok/johnny && cd johnny
export QT_SELECT=qt5
qmake-qt5 && make -j$(nproc)

By default the X server is not running in Cygwin, start Cygwin/X:

startxwin &

Press Enter to see the command line prompt.

Let's set the value of the DISPLAY variable:

export DISPLAY=:0.0

You can now start Johnny:


Start Johnny, go to the Settings tab and point to the john.exe executable, for example /home/MiAl/john/run/john.exe.

The following screenshot is taken in Windows after successfully cracking password using Johnny and the video card.

Look for instructions for use on the pages-cards of these programs:

Leave Your Observation

Your email address will not be published.