Posts: 2
Threads: 1
Joined: Sep 2019
09-05-2019, 02:44 PM
Hi,
I just wanted to share the steps that made me able to use hashcat in a linux distro with an amd card
hope this will help someone..
Tested on:
Linux: Ubuntu 18.04
AMD: RX580
hashcat: 5.1.0+1394
Steps:
1. sudo apt-get install ocl-icd-libopencl1 opencl-headers clinfo
2. Install: https://rocm.github.io/install.html (OpenCL-only Installation of ROCm)
3. Reboot
4. apt remove rocm-dkms
5. Reboot
6. Install AMDGPU Driver (./amdgpu-install --opencl=legacy,rocm --headless)
7. Reboot
8. apt remove amdgpu-dkms
9. Reboot
in my case i had problems with the updated dkms which results in a freeze once i type clinfo or use hashcat..
faq:
1. why installed dkms in the first place? idk
2. why too many reboots? idk, maybe just to make sure i'm using the right kernel?
there is many confusions while dealing with amd in linux
https://hashcat.net/faq/wrongdriver was helpful but not much, there was no amdgpu mentioned, without it was unable of running hashcat (maybe bcz pci rejects atomics ?, as that what i was keep getting as a message on dmesg)
.....
Posts: 1,042
Threads: 2
Joined: Jun 2017
The enormous misunderstanding of AMD is that they really think LINUX is UBUNTU, or CentOS or RHEL:
The ROCm 2.0.x platform supports the following operating systems:
Ubuntu 16.04.x and 18.04.x (Version 16.04.3 and newer or kernels 4.13 and newer)
CentOS 7.4, 7.5, and 7.6 (Using devtoolset-7 runtime support)
RHEL 7.4, 7.5, and 7.6 (Using devtoolset-7 runtime support)
https://rocm.github.io/install.html#supp...-available
So, you're absolutely right: There is many confusions while dealing with AMD on LINUX.
Posts: 50
Threads: 7
Joined: Aug 2019
Hi I tried your method, unfortunately it didn't work. You seem to have a handle on this could you take a look at my post I am really at a loss.
Posts: 2
Threads: 1
Joined: Sep 2019
(10-09-2019, 01:49 AM)Rdgeno Wrote: Hi I tried your method, unfortunately it didn't work. You seem to have a handle on this could you take a look at my post I am really at a loss.
Hi, i'm not sure if you fixed your issue or not;
have you tried the above method on a clean os installation?
also, it would help if you can give more info about your issue and your system specs
Posts: 1
Threads: 0
Joined: May 2022
05-23-2022, 01:47 AM
(This post was last modified: 05-23-2022, 01:49 AM by pkersey.)
I know this is an old thread but just posting my success story:
Ubuntu Server Ubuntu 18.04.6 LTS
$sudo apt-get install ocl-icd-libopencl1 opencl-headers clinfo
download and install amdgpu-install
$ amdgpu-install --usecase=rocm --opencl=legacy,rocr -y
reboot
$ sudo apt remove amdgpu-dkms
now make and make install hashcat from the sources directly, do not use the package binaries.
reboot
Code: root@hashcat:~# hashcat -b
hashcat (v6.2.5-446-g2e8ba6ba2) 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: Outdated POCL OpenCL driver detected!
This OpenCL driver may fail kernel compilation or produce false negatives.
We recommend using a version of POCL >= 1.9
You can use --force to override, but do not report related errors.
/sys/bus/pci/devices/0000:07:00.0/gpu_busy_percent: No such file or directory
/sys/bus/pci/devices/0000:06:00.0/gpu_busy_percent: No such file or directory
/sys/bus/pci/devices/0000:05:00.0/gpu_busy_percent: No such file or directory
/sys/bus/pci/devices/0000:04:00.0/gpu_busy_percent: No such file or directory
/sys/bus/pci/devices/0000:03:00.0/gpu_busy_percent: No such file or directory
/sys/bus/pci/devices/0000:01:00.0/gpu_busy_percent: No such file or directory
OpenCL API (OpenCL 1.2 pocl 1.1 None+Asserts, LLVM 6.0.0, SPIR, SLEEF, DISTRO, POCL_DEBUG) - Platform #1 [The pocl project]
===========================================================================================================================
* Device #1: pthread-Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz, skipped
OpenCL API (OpenCL 2.1 AMD-APP (3380.4)) - Platform #2 [Advanced Micro Devices, Inc.]
=====================================================================================
* Device #2: AMD Radeon (TM) RX 480 Graphics, 8064/8192 MB (6745 MB allocatable), 36MCU
* Device #3: AMD Radeon (TM) RX 480 Graphics, 8064/8192 MB (6745 MB allocatable), 36MCU
* Device #4: Radeon RX 580 Series, 8064/8192 MB (6745 MB allocatable), 36MCU
* Device #5: Radeon RX 580 Series, 8064/8192 MB (6745 MB allocatable), 36MCU
* Device #6: Radeon RX 580 Series, 8064/8192 MB (6745 MB allocatable), 36MCU
* Device #7: AMD Radeon (TM) RX 470 Graphics, 3968/4096 MB (3264 MB allocatable), 32MCU
Benchmark relevant options:
===========================
* --optimized-kernel-enable
-------------------
* Hash-Mode 0 (MD5)
-------------------
Speed.#2.........: 6658.2 MH/s (43.82ms) @ Accel:128 Loops:256 Thr:256 Vec:1
Speed.#3.........: 12304.9 MH/s (95.40ms) @ Accel:256 Loops:1024 Thr:128 Vec:1
Speed.#4.........: 12303.9 MH/s (96.34ms) @ Accel:128 Loops:1024 Thr:256 Vec:1
Speed.#5.........: 12730.3 MH/s (92.66ms) @ Accel:128 Loops:1024 Thr:256 Vec:1
Speed.#6.........: 12315.1 MH/s (96.20ms) @ Accel:128 Loops:1024 Thr:256 Vec:1
Speed.#7.........: 10481.2 MH/s (49.76ms) @ Accel:256 Loops:512 Thr:128 Vec:1
Speed.#*.........: 66793.5 MH/s
----------------------
* Hash-Mode 100 (SHA1)
----------------------
Speed.#2.........: 2126.1 MH/s (34.09ms) @ Accel:128 Loops:64 Thr:256 Vec:1
Speed.#3.........: 3974.8 MH/s (73.64ms) @ Accel:256 Loops:256 Thr:128 Vec:1
Speed.#4.........: 3983.0 MH/s (74.23ms) @ Accel:512 Loops:256 Thr:64 Vec:1
Speed.#5.........: 4116.1 MH/s (71.67ms) @ Accel:512 Loops:256 Thr:64 Vec:1
Speed.#6.........: 4054.6 MH/s (72.91ms) @ Accel:512 Loops:256 Thr:64 Vec:1
Speed.#7.........: 3448.6 MH/s (76.41ms) @ Accel:128 Loops:1024 Thr:64 Vec:1
Speed.#*.........: 21703.1 MH/s
---------------------------
* Hash-Mode 1400 (SHA2-256)
---------------------------
Speed.#2.........: 911.8 MH/s (81.66ms) @ Accel:64 Loops:512 Thr:64 Vec:1
Speed.#3.........: 1674.0 MH/s (89.03ms) @ Accel:32 Loops:512 Thr:256 Vec:1
Speed.#4.........: 1749.9 MH/s (85.20ms) @ Accel:16 Loops:1024 Thr:256 Vec:1
Speed.#5.........: 1718.4 MH/s (86.67ms) @ Accel:16 Loops:1024 Thr:256 Vec:1
Speed.#6.........: 1744.6 MH/s (85.46ms) @ Accel:16 Loops:1024 Thr:256 Vec:1
Speed.#7.........: 1494.8 MH/s (87.55ms) @ Accel:128 Loops:256 Thr:128 Vec:1
Speed.#*.........: 9293.4 MH/s
---------------------------
* Hash-Mode 1700 (SHA2-512)
---------------------------
Speed.#2.........: 249.9 MH/s (74.47ms) @ Accel:4 Loops:512 Thr:256 Vec:1
Speed.#3.........: 433.3 MH/s (85.21ms) @ Accel:128 Loops:128 Thr:64 Vec:1
Speed.#4.........: 434.9 MH/s (85.76ms) @ Accel:8 Loops:512 Thr:256 Vec:1
Speed.#5.........: 429.5 MH/s (86.82ms) @ Accel:8 Loops:512 Thr:256 Vec:1
Speed.#6.........: 439.6 MH/s (84.77ms) @ Accel:8 Loops:512 Thr:256 Vec:1
Speed.#7.........: 366.9 MH/s (90.30ms) @ Accel:64 Loops:256 Thr:64 Vec:1
Speed.#*.........: 2354.1 MH/s
Posts: 19
Threads: 2
Joined: Apr 2019
Wait until you install a second amd card. There will be new amount of errors.
It's just easier to switch to nvidia(maybe that's intentional, who knows). I sold both my rx580s and bought 2x gtx1080.
Posts: 3
Threads: 1
Joined: Nov 2024
necrobump
in 2024 I managed to run hashcat on rx5600xt
It is possible with:
It must be very specific version of ROCm and OS, because rx5600 is RDNA1 and "RDNA1 is not, and has never been officially supported by ROCm" ( https://github.com/ROCm/ROCm/issues/2527...2477175609)
Installation:
Code: # necessary usergroups to use all stuff without sudo
sudo usermod -a -G render,video $LOGNAME
# rocm 5.2.5 for ubuntu 20.04
wget https://repo.radeon.com/amdgpu-install/22.20.5/ubuntu/focal/amdgpu-install_22.20.50205-1_all.deb
sudo dpkg -i amdgpu-install_22.20.50205-1_all.deb
# check /etc/apt/sources.list.d/amdgpu-proprietary.list
# it should have `deb https://repo.radeon.com/amdgpu/22.20.5/ubuntu focal proprietary`
sudo apt update
# it will install rocm and amdgpu-dkms as well (2GB at all)
# nothing worked without kernel module
sudo amdgpu-install --opencl=rocr --no-32
reboot
# just to be sure
#sudo modprobe amdgpu
# build hashcat from git to avoid different obscure errors
# v6.2.6-851-g6716447df in my case
git clone https://github.com/hashcat/hashcat
cd hashcat
make
# to remove hashcat warning on outdated pocl drivers
#sudo apt-get remove --purge pocl-opencl-icd
#sudo apt autoremove
./hashcat -b -d1 | tee ~/benchmark.txt
Benchmark:
Code: hashcat (v6.2.6-851-g6716447df) 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.
HIP API (HIP 5.2.21153)
=======================
* Device #1: AMD Radeon RX 5600 XT, 6128/6128 MB, 18MCU
OpenCL API (OpenCL 2.1 AMD-APP (3452.0)) - Platform #1 [Advanced Micro Devices, Inc.]
=====================================================================================
* Device #2: AMD Radeon RX 5600 XT, skipped
Benchmark relevant options:
===========================
* --backend-devices=1
* --backend-devices-virtual=1
* --optimized-kernel-enable
-------------------
* Hash-Mode 0 (MD5)
-------------------
Speed.#1.........: 20646.9 MH/s (29.16ms) @ Accel:1024 Loops:1024 Thr:32 Vec:1
----------------------
* Hash-Mode 100 (SHA1)
----------------------
Speed.#1.........: 8176.3 MH/s (73.73ms) @ Accel:1024 Loops:1024 Thr:32 Vec:1
---------------------------
* Hash-Mode 1400 (SHA2-256)
---------------------------
Speed.#1.........: 3469.0 MH/s (86.90ms) @ Accel:1024 Loops:512 Thr:32 Vec:1
---------------------------
* Hash-Mode 1700 (SHA2-512)
---------------------------
Speed.#1.........: 879.4 MH/s (85.72ms) @ Accel:512 Loops:256 Thr:32 Vec:1
-------------------------------------------------------------
* Hash-Mode 22000 (WPA-PBKDF2-PMKID+EAPOL) [Iterations: 4095]
-------------------------------------------------------------
Speed.#1.........: 412.9 kH/s (88.40ms) @ Accel:1024 Loops:256 Thr:32 Vec:1
-----------------------
* Hash-Mode 1000 (NTLM)
-----------------------
Speed.#1.........: 31602.0 MH/s (18.16ms) @ Accel:1024 Loops:1024 Thr:32 Vec:1
---------------------
* Hash-Mode 3000 (LM)
---------------------
Speed.#1.........: 17871.9 MH/s (33.65ms) @ Accel:1024 Loops:1024 Thr:32 Vec:1
--------------------------------------------
* Hash-Mode 5500 (NetNTLMv1 / NetNTLMv1+ESS)
--------------------------------------------
Speed.#1.........: 21992.4 MH/s (27.36ms) @ Accel:1024 Loops:1024 Thr:32 Vec:1
----------------------------
* Hash-Mode 5600 (NetNTLMv2)
----------------------------
Speed.#1.........: 1265.6 MH/s (59.55ms) @ Accel:512 Loops:256 Thr:32 Vec:1
--------------------------------------------------------
* Hash-Mode 1500 (descrypt, DES (Unix), Traditional DES)
--------------------------------------------------------
Speed.#1.........: 719.3 MH/s (52.36ms) @ Accel:64 Loops:1024 Thr:32 Vec:1
------------------------------------------------------------------------------
* Hash-Mode 500 (md5crypt, MD5 (Unix), Cisco-IOS $1$ (MD5)) [Iterations: 1000]
------------------------------------------------------------------------------
Speed.#1.........: 4671.5 kH/s (60.68ms) @ Accel:1024 Loops:500 Thr:32 Vec:1
----------------------------------------------------------------
* Hash-Mode 3200 (bcrypt $2*$, Blowfish (Unix)) [Iterations: 32]
----------------------------------------------------------------
Speed.#1.........: 19154 H/s (57.47ms) @ Accel:16 Loops:8 Thr:16 Vec:1
--------------------------------------------------------------------
* Hash-Mode 1800 (sha512crypt $6$, SHA512 (Unix)) [Iterations: 5000]
--------------------------------------------------------------------
Speed.#1.........: 114.9 kH/s (56.62ms) @ Accel:512 Loops:256 Thr:256 Vec:1
--------------------------------------------------------
* Hash-Mode 7500 (Kerberos 5, etype 23, AS-REQ Pre-Auth)
--------------------------------------------------------
Speed.#1.........: 356.8 MH/s (52.81ms) @ Accel:128 Loops:256 Thr:32 Vec:1
-------------------------------------------------
* Hash-Mode 13100 (Kerberos 5, etype 23, TGS-REP)
-------------------------------------------------
Speed.#1.........: 167.8 MH/s (55.77ms) @ Accel:32 Loops:512 Thr:32 Vec:1
---------------------------------------------------------------------------------
* Hash-Mode 15300 (DPAPI masterkey file v1 (context 1 and 2)) [Iterations: 23999]
---------------------------------------------------------------------------------
Speed.#1.........: 71053 H/s (88.34ms) @ Accel:1024 Loops:256 Thr:32 Vec:1
---------------------------------------------------------------------------------
* Hash-Mode 15900 (DPAPI masterkey file v2 (context 1 and 2)) [Iterations: 12899]
---------------------------------------------------------------------------------
Speed.#1.........: 31662 H/s (92.17ms) @ Accel:512 Loops:128 Thr:32 Vec:1
------------------------------------------------------------------
* Hash-Mode 7100 (macOS v10.8+ (PBKDF2-SHA512)) [Iterations: 1023]
------------------------------------------------------------------
Speed.#1.........: 394.6 kH/s (73.85ms) @ Accel:256 Loops:255 Thr:32 Vec:1
---------------------------------------------
* Hash-Mode 11600 (7-Zip) [Iterations: 16384]
---------------------------------------------
Speed.#1.........: 423.3 kH/s (79.22ms) @ Accel:256 Loops:4096 Thr:32 Vec:1
------------------------------------------------
* Hash-Mode 12500 (RAR3-hp) [Iterations: 262144]
------------------------------------------------
Speed.#1.........: 47690 H/s (96.40ms) @ Accel:128 Loops:16384 Thr:32 Vec:1
--------------------------------------------
* Hash-Mode 13000 (RAR5) [Iterations: 32799]
--------------------------------------------
Speed.#1.........: 43921 H/s (52.30ms) @ Accel:512 Loops:256 Thr:32 Vec:1
--------------------------------------------------------------------------------
* Hash-Mode 6211 (TrueCrypt RIPEMD160 + XTS 512 bit (legacy)) [Iterations: 1999]
--------------------------------------------------------------------------------
Speed.#1.........: 262.7 kH/s (69.21ms) @ Accel:512 Loops:128 Thr:32 Vec:1
-----------------------------------------------------------------------------------
* Hash-Mode 13400 (KeePass 1 (AES/Twofish) and KeePass 2 (AES)) [Iterations: 24569]
-----------------------------------------------------------------------------------
Speed.#1.........: 56028 H/s (54.76ms) @ Accel:512 Loops:256 Thr:32 Vec:1
-------------------------------------------------------------------
* Hash-Mode 6800 (LastPass + LastPass sniffed) [Iterations: 100099]
-------------------------------------------------------------------
Speed.#1.........: 14318 H/s (52.59ms) @ Accel:256 Loops:512 Thr:32 Vec:1
--------------------------------------------------------------------
* Hash-Mode 11300 (Bitcoin/Litecoin wallet.dat) [Iterations: 200459]
--------------------------------------------------------------------
Speed.#1.........: 4101 H/s (91.69ms) @ Accel:512 Loops:256 Thr:32 Vec:1
Started: Sat Nov 30 12:28:06 2024
Stopped: Sat Nov 30 12:34:17 2024
|