As in Kali Linux to crack passwords graphics card and CPU?

As in Kali Linux to crack passwords graphics card and CPU?

This article shows you which drivers and programs to install in order to hashcat and similar programs for brute-force can use the processor and graphics card to crack passwords.

As in Kali Linux to crack passwords graphics card and CPU?, image # 1

Currently, hashcat uses OpenCL. As it is written in Wikipedia, OpenCL (eng. Open Computing Language open computing language) is a framework for writing computer programs related to parallel computing on a variety of graphic and Central processors, and FPGA. OpenCL includes a programming language based on standard C programming language C99, and the application programming interface. OpenCL provides parallelism at the instruction level and data level is the implementation of GPGPU technology. OpenCL is a completely open standard, its use is not subject to license fees.



The goal of OpenCL is to complement open industry standards for three-dimensional computer graphics and sound to OpenGL and OpenAL capabilities of GPUs for high performance computing. OpenCL is developed and maintained by a non-profit consortium Khronos Group, which includes many large companies, including AMD, Apple, ARM, Intel, Nvidia, Sony Computer Entertainment and others.

That is due to this versatility OpenCL program to perform calculations, including hashcatstart your tasks in a generic way on any device that supports OpenCL.

Information about supported Intel processors you will find on the page https://github.com/intel/compute-runtime (support for “Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL” appeared Gen8) and https://www.intel.ru/content/www/ru/ru/support/articles/000005524/graphics-drivers.html (support for OpenCL different generations and models of processors).



AMD, NVIDIA also support OpenCL most, except the very old.

OpenCL to work you must install the driver and tools for interacting with OpenCL. This article focuses on installing OpenCL on Linux.

So requirements to run OpenCL hashcat with the following:

  • For AMD graphics cards should: “RadeonOpenCompute (ROCm)” Software Platform (1.6.180 or later)
  • For Intel you need: “OpenCL Runtime for Intel Core and Intel Xeon Processors” (16.1.1 or later)
  • For NVIDIA graphics cards should: “NVIDIA Driver” (367.x or a later version)

For legacy processors (up to Broadwell) used “OpenCL 2.0 GPU Driver Package for Linux” (Iris, Iris Pro).

This article will show you how to install everything needed to use OpenCL on NVIDIA graphics cards and modern Intel processors. The instructions will be given on the example of Kali Linux (must also be suitable for Debian, Linux Mint, Ubuntu and their derivatives) and Arch Linux (BlackArch).

How to enable OpenCL on Kali Linux (Debian, Linux Mint, Ubuntu) for hashcat

Enable OpenCL for NVIDIA

Start with a full update of your system and then reboot:

sudo apt update && sudo apt full-upgrade -y
reboot

After we upgraded the system, you need to check the kernel modules nouveau (the free Nvidia driver, they will conflict with the proprietary)

lsmod |grep -i nouveau

If the previous command something introduced, for example:

nouveau 1499136 1
mxm_wmi 16384 1 nouveau
wmi 16384 2 mxm_wmi,nouveau
video 40960 1 nouveau

this means that they are included. So you need to add them to the blacklist:

echo -e "blacklist nouveaunoptions nouveau modeset=0nalias nouveau off" | sudo tee /etc/modprobe.d/blacklist-nouveau.conf

After changing kernel parameters, we need to update our initramfs and reboot.

update-initramfs -u && reboot

After reboot and checking that the nouveau module is not loaded, we proceed to install the OpenCL ICD loader, drivers and Toolkit of CUDA.

sudo apt install -y ocl-icd-libopencl1 nvidia-driver nvidia-cuda-toolkit

During driver installation, the system creates a new kernel module, so it requires another reboot.

Verify installed drivers

Now our system needs to be ready, we need to check that the drivers are correctly loaded. We can quickly verify this by running the tool nvidia-smi.

nvidia-smi
As in Kali Linux to crack passwords graphics card and CPU?, image # 2

The finding shows that our GPU driver and right — you can begin hacking passwords. Before continuing, let us make the test and verify that hashcat and CUDA work together.

hashcat -I

Note:

If you receive an error clGetDeviceIDs(): CL_DEVICE_NOT_FOUND mark ID Platform Vendor: Mesa, start:

sudo apt remove mesa-opencl-icd

Continue with a performance test. Benchmark

hashcat -b -D 1,2 --force

Enable OpenCL for Intel

If your CPU supports OpenCL, then install the following packages:

sudo apt install firmware-misc-nonfree intel-opencl-icd

Review the list of devices again (it should add new device):

hashcat -I
As in Kali Linux to crack passwords graphics card and CPU?, image # 3

And run again:

hashcat -b -D 1,2 --force
As in Kali Linux to crack passwords graphics card and CPU?, image # 4

As in Kali Linux to crack passwords graphics card and CPU?, image # 5

How to enable OpenCL on Arch Linux (BlackArch) for hashcat

Enable OpenCL for NVIDIA

Remove xf86-video-nouveau is, it is:

sudo pacman -R xf86-video-nouveau

Install proprietary NVIDIA driver:

sudo pacman -S nvidia nvidia-utils

Install CUDA driver and other necessary packages as well as hashcat:

sudo pacman -S opencl-nvidia opencl-headers cuda hashcat

Enable OpenCL for Intel

sudo pacman -S linux-firmware intel-compute-runtime pocl

Now, check the device list:

hashcat -I
As in Kali Linux to crack passwords graphics card and CPU?, image # 6

Run the benchmark:

hashcat -b -D 1,2 --force
As in Kali Linux to crack passwords graphics card and CPU?, image # 7

As in Kali Linux to crack passwords graphics card and CPU?, image # 8

Package beignet

beignet is an implementation of the OpenCL for Intel IvyBridge and Haswell iGPUs. Currently this package is considered obsolete and it must be replaced by intel-compute-runtime. I have in the system to install beignet, then there is an additional OpenCL device — how to Kali Linux, which also shows 3 of the OpenCL device. But the device is unstable with Hashcat.

You can test how behaves beignet on your system. Perhaps for older processors it is the only option.

OpenCL for AMD

If you are owner of AMD cards, please share your experience installing the AMD driver with OpenCL support. Write your commands to install in the comments and I’ll add a new section in the article. If possible, make screenshots and/or benchmarks.

Source

ORIGINAL PAGE – https://vk.com/@rucorenet-kak-v-kali-linux-vzlamyvat-paroli-videokartoi-i-centralnym-p


153 Views

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments


Do NOT follow this link or you will be banned from the site!
0
Would love your thoughts, please comment.x
()
x

Spelling error report

The following text will be sent to our editors: