After some attempts, I have recorded some of my experiences as follows.
First, we know that for a GUP to accelerate in hashcat, two conditions need to be met: 1. An accelerable graphics card (GPU); 2.Install cuda.
My computer is a win10 system, with an N-card 3060
Initially, I wanted to accelerate hashcat in kali linux, but the graphics card in the virtual machine is generated by an algorithm and cannot be used for acceleration. When I saw that the n card could directly connect to a virtual machine, I searched around with hope, but I couldn't find a tutorial on directly connecting to a graphics card suitable for kali linux. Moreover, only linux hosts can directly connect to a windows virtual machine online, which is the opposite of what I want to do directly from a windows system to linux. So I didn't have a suitable way to complete this step. Even if it's done, I still have to switch the graphics card back and forth. I mainly use Windows 10. If I had the ability, I could write a program to switch the graphics card, but it's not suitable for me right now, so it's over. I hope this step can be improved in the future.
Therefore, we chose to complete hashcat acceleration on the host machine. The default graphics card on the host machine is 3060, so as long as cuda and hashcat are installed, GPU acceleration can be used normally. Download and install cuda directly. You can install it in the next step (link). Please be careful with hashcat. It is recommended to download the binary file from the official website (link) and extract it to use it. Note that hashcat is a command-line application. Double-clicking to open hashcat.exe will cause it to crash. You need to use the command line to open it in the system terminal cmd.
(msys2 Installation hashcat Problem: CUDA SDK toolkit not installed or incorrectly installed)
I'm having some problems installing hashcat using the installation instructions on github (CUDA SDK toolkit not installed or incorrectly installed).
As you can see, the problem is that cuda cannot be detected, but I have already installed cuda. Since cuda was not detected, the system defaults to opencl for the api. I personally don't know where the problem is. I browsed some English websites and tried some operations, but to no avail, so I gave up. However, because I downloaded the binary hashcat, I tried it and it succeeded, I don't know why.
The hashcat installed using msys2 above has the same problem whether in the msys2 shell or the system shell.
Opening the directly downloaded binary hashcat using the system shell does not cause this problem.
The api automatically detects cuda without any errors.
Using hashcat -b, we can know the speed at which hashcat hits various types of hashes. Some are very fast, while others are not. The number of hashes per second varies greatly for different types of hashes. By comparison with or without GPU acceleration, hashcat is 60 times faster with GPU acceleration than without acceleration.
This article is reprinted from the internet! Non-document password recovery master website original