broken hashcat install - ubuntu 22.04 & 3090
#1
Hello, I just upgraded to ubuntu 22.04, and it has broken my hashcat install. I re-installed nvidia drivers and cuda/cuda toolkit, which seems to be working. I re-installed Intel OpenCL, but something is still wrong: getting nvrtcCompileProgram and OpenCL errors.

This happens with the sources, installing from ubuntu apt, and building from source.

Any help?

Code:
$ ./hashcat.bin -b -m 2500
hashcat (v6.2.6) starting in benchmark mode

Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.

* Device #1: WARNING! Kernel exec timeout is not disabled.
            This may cause "CL_OUT_OF_RESOURCES" or related errors.
            To disable the timeout, see: https://hashcat.net/q/timeoutpatch
* Device #3: WARNING! Kernel exec timeout is not disabled.
            This may cause "CL_OUT_OF_RESOURCES" or related errors.
            To disable the timeout, see: https://hashcat.net/q/timeoutpatch
CUDA API (CUDA 11.7)
====================
* Device #1: NVIDIA GeForce RTX 3090, 23609/24245 MB, 82MCU

OpenCL API (OpenCL 2.1 LINUX) - Platform #1 [Intel(R) Corporation]
==================================================================
* Device #2: AMD Ryzen 5 5600X 6-Core Processor, skipped

OpenCL API (OpenCL 3.0 CUDA 11.7.101) - Platform #2 [NVIDIA Corporation]
========================================================================
* Device #3: NVIDIA GeForce RTX 3090, skipped

Benchmark relevant options:
===========================
* --optimized-kernel-enable

The plugin 2500 is deprecated and was replaced with plugin 22000. For more details, please read: https://hashcat.net/forum/thread-10253.html

------------------------------------------------------
* Hash-Mode 2500 (WPA-EAPOL-PBKDF2) [Iterations: 4095]
------------------------------------------------------

nvrtcCompileProgram(): NVRTC_ERROR_INVALID_OPTION

nvrtc: error: invalid value for --gpu-architecture (-arch)

* Device #1: Kernel /home/xx/hashcat-6.2.6/OpenCL/shared.cl build failed.

* Device #1: Kernel /home/xx/hashcat-6.2.6/OpenCL/shared.cl build failed.

Code:
$nvidia-smi
Sat Sep  3 11:24:44 2022     
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01    Driver Version: 515.65.01    CUDA Version: 11.7    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|        Memory-Usage | GPU-Util  Compute M. |
|                              |                      |              MIG M. |
|===============================+======================+======================|
|  0  NVIDIA GeForce ...  Off  | 00000000:09:00.0  On |                  N/A |
|  0%  34C    P8    27W / 350W |    434MiB / 24576MiB |      7%      Default |
|                              |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                             
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU  GI  CI        PID  Type  Process name                  GPU Memory |
|        ID  ID                                                  Usage      |
|=============================================================================|
|    0  N/A  N/A    16884      G  /usr/lib/xorg/Xorg                195MiB |
|    0  N/A  N/A    17029      G  /usr/bin/gnome-shell              52MiB |
|    0  N/A  N/A    18576      G  ...870525164430350735,131072      183MiB |
+-----------------------------------------------------------------------------+
Reply
#2
Let me partially answer my own question, since I accidentally found a solution to the GPU part. The CPU is no longer detected, though.

1. I used the binaries. (Building from source did not work)
2. I purged all nvidia and cuda libraries
3. I installed cuda twice. The first time installed the driver, then I went back and installed/upgraded the toolkit because there was apparently an error after the driver install.

Now hashcat is working with the GPU for cuda and opencl, but not with the CPU (forgive me that i'm benchmarking on a depreciated plugin):



Code:
$ ./hashcat.bin -b -m 2500
hashcat (v6.2.6) starting in benchmark mode

Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.

* Device #1: WARNING! Kernel exec timeout is not disabled.
            This may cause "CL_OUT_OF_RESOURCES" or related errors.
            To disable the timeout, see: https://hashcat.net/q/timeoutpatch
* Device #3: WARNING! Kernel exec timeout is not disabled.
            This may cause "CL_OUT_OF_RESOURCES" or related errors.
            To disable the timeout, see: https://hashcat.net/q/timeoutpatch
CUDA API (CUDA 11.7)
====================
* Device #1: NVIDIA GeForce RTX 3090, 23559/24245 MB, 82MCU

OpenCL API (OpenCL 2.1 LINUX) - Platform #1 [Intel(R) Corporation]
==================================================================
* Device #2: AMD Ryzen 5 5600X 6-Core Processor, skipped

OpenCL API (OpenCL 3.0 CUDA 11.7.101) - Platform #2 [NVIDIA Corporation]
========================================================================
* Device #3: NVIDIA GeForce RTX 3090, skipped

Benchmark relevant options:
===========================
* --optimized-kernel-enable

The plugin 2500 is deprecated and was replaced with plugin 22000. For more details, please read: https://hashcat.net/forum/thread-10253.html

------------------------------------------------------
* Hash-Mode 2500 (WPA-EAPOL-PBKDF2) [Iterations: 4095]
------------------------------------------------------

Speed.#1.........:  1093.4 kH/s (75.53ms) @ Accel:8 Loops:1024 Thr:512 Vec:1

Started: Sat Sep  3 11:56:24 2022
Stopped: Sat Sep  3 11:56:36 2022

(base) $ ./hashcat.bin -b -m 2500 -d 2
hashcat (v6.2.6) starting in benchmark mode

Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.

No devices found/left.

Started: Sat Sep  3 11:58:38 2022
Stopped: Sat Sep  3 11:58:38 2022
Reply
#3
in this case -d only works in conjunction with -D as CPU's are skipped by default

so try -D1,2 -d1,2 for benchmarking GPU and CPU (use -m0 for fast init)
Reply