Skip to content

openwall/john-packages

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

John the Ripper Packages

john-the-ripper License Donation

Openwall's John the Ripper (JtR) is a fast password cracker, currently available for many flavors of Unix, Windows, DOS, and OpenVMS. Its primary purpose is to detect weak Unix passwords. Besides several crypt(3) password hash types most commonly found on various Unix systems, supported out of the box are Windows LM hashes, plus lots of other hashes and ciphers.

Table of Contents

  1. Introduction
    1. Testing, Continuous Integration, and Continuous Delivery
    2. Package Building Environments
    3. Packaging and Application Distribution
    4. Repository Commits Feed New Commits Feed
    5. John the Ripper Releases Feed New Releases Feed
  2. Snap Package
  3. Flatpak Package
  4. Windows Package
  5. Docker Image
  6. Checksums
  7. Package Security
  8. Contribute
  9. License

Introduction

Testing and Continuous Integration

All continuous integration (CI) and continuous delivery (CD) procedures are fully automated, all builds and tests are performed whenever requested by the packager. Manual procedures are required just to start the process.

Click on the link to learn more about our Continuous Integration and Continuous Delivery procedures.

Continuous Delivery Status

Publish Docker image Flatpak Build Build Status

Package Building Environments

Click on the link to learn more about our packages Building Environments.

Packaging and Application Distribution

Snap and Flatpak are cool new ways of distributing Linux applications among a wide range of different distros. They are technologies to deploy applications in a secure, sandboxed and containerised way.

A Docker image is a read-only template used to execute code in a Docker container. An image is an immutable file that contains the binaries, configuration files, libraries, dependencies, tools, and other files needed for John the Ripper application to run.

When the Docker user runs an image, it becomes one instance (it becomes a container, in other words, a running instance of the application).

Snap

Delivered using Launchpad [ supports up to AVX512BW ]

A Snap is a gpg signed squashfs file containing an application together with its dependencies, and a description of how it should safely be run on your system.

You can install john by following the instructions at https://snapcraft.io/john-the-ripper. For distributions without snap pre-installed, users should enable snap support, then install:

 sudo snap install john-the-ripper

Just dance now:

 $ john-the-ripper -list=build-info
 [...]
 Build: linux-gnu 64-bit x86_64 AVX2 AC OMP OPENCL
 SIMD: AVX2, interleaving: MD4:3 MD5:3 SHA1:1 SHA256:1 SHA512:1
 Deploy: sandboxed as a Snap app
 [...]

You can also run the software using the official john alias:

 john -list=build-info

John runs confined under a restrictive security sandbox by default. Nevertheless, you can access and audit any file located in your home. Below, an usage example:

 john -list=format-tests | cut -f3 > ~/alltests.in
 john -form=SHA512crypt ~/alltests.in

For your convenience, the snap installed on your system contains the file /snap/john-the-ripper/current/snap/manifest.yaml which field build_url points to its build log.

The highlights:

  • fallback for CPU[*] and OMP;
  • prince mode available;
  • OpenCL available (GPU driver installation is needed);
  • John the Ripper is a "featured software" in the security category on Canonical Snap Store;
  • John the Ripper is a software with 4-star () user reviews on Canonical Snap Store;
  • John the Ripper is tagged as safe, confined and auditable software on Canonical Snap Store;
  • John the Ripper supports and has a package for all architectures supported by Ubuntu itself.
  • also available via the alias john, e.g. john -list=build-info;
  • the rolling version of John 1.9.0 Jumbo 1+:
    • is available for X86_64, armhf, arm64, ppc64el, i386, riscv64, and s390x;
  • the stable John 1.9.0 Jumbo 1:
    • is available for X86_64, armhf, arm64, ppc64el, i386, powerpc, and s390x;
    • has regex mode available;
  • a development version:
    • is available for X86_64, arm64, ppc64el, and s390x.

[*] John the Ripper runs using the best SIMD instructions available on the host it's running on.

John the Ripper snap package has approximately eight thousand active users [*].

[*] 7 Day Active Users: the number of unique users who had at least one session within a 7 day period.

Enabling Aliases

You are free to pick and set up aliases. To enable the usage of aliases with John the Ripper snap, run sudo snap alias john-the-ripper <alias>. For example:

 sudo snap alias john-the-ripper john-snap
 sudo snap alias john-the-ripper.dmg2john dmg2john
 sudo snap alias john-the-ripper.hccap2john hccap2john
 sudo snap alias john-the-ripper.racf2john racf2john
 sudo snap alias john-the-ripper.vncpcap2john vncpcap2john
 sudo snap alias john-the-ripper.zip2john zip2john
 sudo snap alias john-the-ripper.gpg2john gpg2john
 sudo snap alias john-the-ripper.keepass2john keepass2john
 sudo snap alias john-the-ripper.putty2john putty2john
 sudo snap alias john-the-ripper.rar2john rar2john
 sudo snap alias john-the-ripper.uaf2john uaf2john
 sudo snap alias john-the-ripper.wpapcap2john wpapcap2john

Once enabled, John itself plus the *2john tools can be invoked using the aliases. In the example, to run John type john-snap.

Running a non-OpenMP build

In some situations a non-OpenMP build may be faster. You can ask to fallback to a non-OpenMP build specifying OMP_NUM_THREADS=1 john <options> in the command line. You avail the best SIMD instructions at one's disposal without any OpenMP stuff. E.g.:

OMP_NUM_THREADS=1 john --list=build-info

Acessing OpenCL

As noted at https://forum.snapcraft.io/t/snaps-and-opencl/8509/17, the use of OpenCL by snaps is a problem. Support for NVIDIA cards is under development.

As a "general" solution (or in the case of AMD hardware), the user can run john out of the sandbox, unconfined (e.g., run /snap/john-the-ripper/current/run/john).

Snap Deployments

Get it from the Snap Store

If you followed the above instructions, you installed the stable (or rolling) version of John the Ripper Jumbo 1+ in your system. If you want to access the hot and bleeding developing version of JtR, you must follow a development channel. For a clean installation:

 sudo snap install --channel=edge john-the-ripper

If you already has JtR installed:

 sudo snap refresh --channel=edge john-the-ripper

If you do so, you will be running the development version available on GitHub.

Flatpak

Delivered using GitLab CI [ supports up to AVX512BW ]

Flatpak is a new framework for desktop applications on Linux, built to be distribution agnostic and allow deployment on any Linux operating system out there.

Flatpak is available for the most common Linux distributions.

To install JtR download the john.flatpak file and run:

# Note that root privileges are required for some operations.
 sudo dnf install -y flatpak # or 'yum install', 'apt-get install', etc.
 sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo # flatpak repository
 sudo flatpak install -y flathub org.freedesktop.Platform//22.08 # install the runtime (base "container")
 flatpak --user install --bundle john.flatpak # per-user installation (not system wide)

John runs confined under a restrictive security sandbox by default. Nevertheless, you can access and audit any file located in your home. Below, an usage example:

 flatpak run com.openwall.John -list=build-info
 flatpak run com.openwall.John -list=format-tests | cut -f3 > ~/alltests.in
 flatpak run com.openwall.John -form=SHA512crypt ~/alltests.in

The highlights:

  • fallback for CPU[*] and OMP;
  • prince mode available.
  • the rolling version of John 1.9.0 Jumbo 1+:
    • is available for X86_64;
  • the stable John 1.9.0 Jumbo 1:
    • is available for X86_64, arm, aarch64, and i386;
    • has regex mode available;
  • a development version:
    • is available for X86_64.

[*] John the Ripper runs using the best SIMD instructions available on the host it's running on.

Flatpak Deployments

Flatpak Download

Using the above instructions you can install the rolling version of John the Ripper Jumbo 1+, the hot and bleeding version, or any previous stable version in your system.

John the Ripper single-file flatpak bundle was built and tested on GitLab.

Windows

Delivered using Microsoft-hosted Windows 2019 Server in Azure [ supports up to AVX512BW ]

To install John the Ripper by downloading the .zip file and installing manually, follow these steps:

  • Download the ZIP file to your machine.
  • Navigate to where you downloaded the file and double click the compressed file.
  • Extract it to a directory such as C:\john-the-ripper.
  • Start a command prompt.
  • Navigate to the directory you extracted the .zip file, e.g., cd C:\john-the-ripper\run.
  • Run JtR:
C:\john-the-ripper\run>john --list=build-info
C:\john-the-ripper\run>john --test --format=SHA512crypt

The highlights:

  • fallback for CPU[*] and OMP;
  • prince mode available;
  • OpenCL available (GPU driver installation is needed);
  • generic crypt(3) format available;
  • security feature Address Space Layout Randomisation (ASLR) enabled;
  • security feature Data Execution Prevention (DEP) enabled;
  • the rolling version of John 1.9.0 Jumbo 1+:
    • is available for X86_64;
  • the stable John 1.9.0 Jumbo 1:
    • is available for X86_64 and i386;
  • a development version:
    • is available for X86_64.

[*] John the Ripper runs using the best SIMD instructions available on the host it's running on.

Windows Deployments

Windows Downloads

Using the above instructions you can install the rolling version of John the Ripper Jumbo 1+, the hot and bleeding version, or any previous stable version in your system.

The package contain all the executables and libraries needed to run a fresh John the Ripper installation.

Running a non-OpenMP build on Windows

In some situations a non-OpenMP build may be faster. You can ask to fallback to a non-OpenMP build specifying the value of OMP_NUM_THREADS in the command line. You avail the best SIMD instructions at one's disposal without any OpenMP stuff. E.g.:

PS C:\john-the-ripper\run> set OMP_NUM_THREADS=1
PS C:\john-the-ripper\run> .\john --list=build-info

Acessing OpenCL

Some adjustments may be necessary to allow John the Ripper detect your GPU hardware. If you are facing problems, please ask for support.

  • That being said, a few advices to anyone facing Windows problems:
    • if john is not recognizing your GPU card (and you are sure all required GPU drivers are installed):

      • using the detect-OpenCL.ps1 script contained in the main folder:

        # I downloaded and extracted "john" to C:\Users\Me\JtR.
        # Then, opened the `detect-OpenCL.ps1` script and copied the command I need to use;
        #   For security reasons, powershell script execution is disabled by default
        PS C:\Users\Me> cd .\JtR\
        
        PS C:\Users\Me\JtR> run\john --list=opencl-devices
        Error: No OpenCL-capable platforms were detected by the installed OpenCL driver.
        Error: No OpenCL-capable devices were detected by the installed OpenCL driver.
        
        PS C:\Users\Me\JtR> Get-Childitem -Path c:\Windows\System32 -Include amdocl64.dll -File -Recurse -ErrorAction SilentlyContinue | %{$_.FullName} | Out-File -NoNewline -encoding ascii -FilePath etc\OpenCL\vendors\AMD-found.icd
        
        PS C:\Users\Me\JtR> run\john --list=opencl-devices
        Platform #0 name: AMD Accelerated Parallel Processing, version: OpenCL 2.1 AMD-APP (3075.13)
            Device #0 (1) name:     gfx902
            Board name:             AMD Radeon(TM) Vega 8 Graphics
            Device vendor:          Advanced Micro Devices, Inc.
            Device type:            GPU (LE)
            Device version:         OpenCL 2.0 AMD-APP (3075.13)
            OpenCL version support: OpenCL C 2.0
            Driver version:         3075.13 (PAL,HSAIL) - AMDGPU-Pro
            Native vector widths:   char 4, short 2, int 1, long 1
            Preferred vector width: char 4, short 2, int 1, long 1
            Global Memory:          5672 MiB
            Global Memory Cache:    16 KiB
            Local Memory:           32 KiB (Local)
            Constant Buffer size:   3081 MiB
            Max memory alloc. size: 3081 MiB
            Max clock (MHz):        1200
            Profiling timer res.:   1 ns
            Max Work Group Size:    256
            Parallel compute cores: 8
            Stream processors:      512  (8 x 64)
            Speed index:            614400
            SIMD width:             16
            Wavefront width:        64
            ADL:                    Overdrive0, device id -1
            PCI device topology:    05:00.0
      • replacing cygwin's OpenCL library cygOpenCL-1.dll in the run directory with OpenCL.dll installed in the c:\Windows\System32 folder. Copy in the OpenCL.dll, and rename the copied file cygOpenCL-1.dll. Example:

        # I downloaded and installed john in C:\Users\Me\JtR
        C:\Users\Me\JtR> run\john --list=opencl-devices
          Error: No OpenCL-capable platforms were detected by the installed OpenCL driver.
          Error: No OpenCL-capable devices were detected by the installed OpenCL driver.
        
        C:\Users\Me\JtR> run\john --test=5 --format=nt-opencl
        No OpenCL devices found
        
        # If you find too many OpenCL.dll files, try them all one at a time:
        # - copy, rename, test; copy another file, rename and ...
        C:\Users\Me\JtR> copy c:\Windows\System32\OpenCL.dll run\cygOpenCL-1.dll
            1 file(s) copied.
        
        C:\Users\Me\JtR> run\john --test=5 --format=nt-opencl
        Device 1: gfx902 [AMD Radeon(TM) Vega 8 Graphics]
        Benchmarking: NT-opencl [MD4 OpenCL/mask accel]... LWS=64 GWS=512 (8 blocks) x2470 DONE
        Raw:    287571K c/s real, 2857M c/s virtual
    • if you get errors like Error building kernel /run/opencl/cryptsha512_kernel_GPU.cl try running john from the subdirectory opencl (e.g. from JtR\run\opencl run ..\john.exe).

Benchmarking:

PS C:\bleeding\run> .\john --test=5 --format=sha512crypt-opencl
Device 0: Juniper [AMD Radeon HD 6700 Series]
Benchmarking: sha512crypt-opencl, crypt(3) $6$ (rounds=5000) [SHA512 OpenCL]... DONE
Speed for cost 1 (iteration count) of 5000
Raw:	11522 c/s real, 819200 c/s virtual

Real cracking:

PS C:\bleeding\run> .\john --format=sha512crypt-opencl d:\hash.txt
Device 0: Juniper [AMD Radeon HD 6700 Series]
Using default input encoding: UTF-8
Loaded 2 password hashes with 2 different salts (sha512crypt-opencl, crypt(3) $6$ [SHA512 OpenCL])
Cost 1 (iteration count) is 5000 for all loaded hashes
Press 'q' or Ctrl-C to abort, almost any other key for status
                 (?)
1g 0:00:00:28  3/3 0.03540g/s 5553p/s 9178c/s 9178C/s 123456
PS C:\bleeding\run> .\john --format=sha512crypt-opencl d:\hash.txt --mask=Hello?awor?l?l?a
Device 0: Juniper [AMD Radeon HD 6700 Series]
Using default input encoding: UTF-8
Loaded 2 password hashes with 2 different salts (sha512crypt-opencl, crypt(3) $6$ [SHA512 OpenCL])
Remaining 1 password hash
Cost 1 (iteration count) is 5000 for all loaded hashes
Press 'q' or Ctrl-C to abort, almost any other key for status
GPU 0 probably invalid temp reading (-1°C).
Hello world!     (?)
1g 0:00:05:06 DONE (2018-01-01 15:08) 0.003265g/s 11369p/s 11369c/s 11369C/s HelloYworik_..HelloLworurU
Use the "--show" option to display all of the cracked passwords reliably
Session completed

Docker Image

Delivered using GitHub Actions [ supports up to AVX512BW ]

For testing and future reference, we have a Docker image of John the Ripper. To use it:

 # CPU only formats
 docker run -it ghcr.io/openwall/john:latest <binary id> <john options>

 # To run ztex formats
 docker run --device=/dev/ttyUSB0 ghcr.io/openwall/john:v1.9.0J1 ztex <john options>

Run John the Ripper and check if it is working:

 docker run ghcr.io/openwall/john # => uses the best SIMD available, tag 'latest' can be ommited
 docker run ghcr.io/openwall/john:rolling # => uses the latest rolling release
 docker run ghcr.io/openwall/john:latest best # => uses the best SIMD available
 docker run ghcr.io/openwall/john:latest avx2-omp -list=build-info
 docker run ghcr.io/openwall/john:latest avx512bw -test=0 -format=cpu

Run a real cracking session:

 docker run ghcr.io/openwall/john:latest -list=format-tests | cut -f3 > ~/alltests.in
 docker run -v "$HOME":/host ghcr.io/openwall/john:latest avx2 -form=SHA512crypt /host/alltests.in --max-run=300

Run a real cracking session, saving the session information on the host:

 docker run -v "$(pwd)":/home/JtR ghcr.io/openwall/john best -form=SHA512crypt /home/JtR/alltests.in --max-run=30
 docker run -v "$(pwd)":/home/JtR ghcr.io/openwall/john best -form=SHA512crypt --wordlist --rules /home/JtR/alltests.in --max-run=20
 docker run -v "$(pwd)":/home/JtR ghcr.io/openwall/john best -form=SHA512crypt --incrementa:digits /home/JtR/alltests.in --max-run=20

Compare the performance of SIMD extensions:

 docker run ghcr.io/openwall/john:latest sse2     --test=10 --format=SHA512crypt
 docker run ghcr.io/openwall/john:latest avx      --test=10 --format=SHA512crypt
 docker run ghcr.io/openwall/john:latest avx2     --test=10 --format=SHA512crypt
 docker run ghcr.io/openwall/john:latest avx512bw --test=10 --format=SHA512crypt

The highlights:

  • prince mode available;
  • the rolling version of John 1.9.0 Jumbo 1+ (ghcr.io/openwall/john:rolling):
    • has auto-selection of the best SIMD if user specifies best as the <binary id>.
  • the stable John 1.9.0 Jumbo 1 (ghcr.io/openwall/john:v1.9.0J1):
    • has ztex formats available.
  • the development version (ghcr.io/openwall/john:latest):
    • has auto-selection of the best SIMD if user specifies best as the <binary id>.

The available binaries (their IDs are sse2-omp, sse2, avx-omp, etc) are:

  • /john/run/john-sse2-omp (default binary)
  • /john/run/john-sse2
  • /john/run/john-avx-omp
  • /john/run/john-avx
  • /john/run/john-avx2-omp
  • /john/run/john-avx2
  • /john/run/john-avx512f-omp
  • /john/run/john-avx512f
  • /john/run/john-avx512bw-omp
  • /john/run/john-avx512bw

Binaries available on images up to rolling-2304 (their IDs are sse2, sse2-no-omp, ssse3, etc) are:

  • /john/run/john-ssse3
  • /john/run/john-ssse3-no-omp
  • /john/run/john-sse4.1
  • /john/run/john-sse4.1-no-omp
  • /john/run/john-sse4.2
  • /john/run/john-sse4.2-no-omp
  • /john/run/john-xop
  • /john/run/john-xop-no-omp

Binaries available on Docker image John 1.9.0 Jumbo 1 (their IDs are ztex and ztex-no-omp) are:

  • /john/run/john-ztex (SSE2)
  • /john/run/john-ztex-no-omp (SSE2)

Docker Image Deployments

Docker Image Downloads

Using the above instructions you can install the rolling version of John the Ripper Jumbo 1+, the hot and bleeding version, or any previous stable version in your system.

Packages Checksums

Released packages checksums computed by Build Servers

File verification is the process of using an algorithm for verifying the integrity of a computer file. A popular approach is to store checksums (hashes) of files, also known as message digests, for later comparison. All john packages checksums (hashes) are computed by the CI servers.

By accessing the build logs for each release on GitHub releases you can view the hashes of all relevant files.

Security

Please inspect all packages prior to running any of them to ensure safety. We already know they're safe, but you should verify the security and contents of any binary from the internet you are not familiar with.

We take security very seriously.

Contribute

We love contributions in the form of issues and pull requests. Read more here before contributing.

License

GNU General Public License v2.0