How to build John the Ripper with OpenCL for Nvidia

Does someone know how to configure John the Ripper with OpenCL for Nvidia?
It looks like the version from nixpkgs is built without support for it and the upstream repo has a shell.nix but only for AMD and Intel.
I’m probably just missing a few packages.

This solution didn’t work Opencl: how to properly configure opengl.extraPackages? (regression?) - #2 by brogos and simply nvidia-offload didn’t work either.

I’m trying to decrypt the password on a proprietary Raspberry Pi SD card because we currently have to pull the plug to restart it and it seemed like a fun exercise :).

1 Like

I’d imagine the only way to do it is to make a package or an overlay or something like that. You can try requesting john the ripper with opencl support as a separate package or something on nixpkgs though.

1 Like

I received a working solution but I have to test if it works with the version from nixpkgs or just with the one I compiled myself.
Will update this post.

Adding this to the mkShell part in the linked file above worked for me but you then have to compile John yourself.

    LD_LIBRARY_PATH= pkgs.lib.makeLibraryPath [