Please note, this is a STATIC archive of website hashcat.net from October 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.

hashcat Forum

Full Version: Problems with OpenCL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I am following the following tutorial:
https://mark911.wordpress.com/2017/04/05/how-to-compile-install-and-run-hashcat-password-cracker-from-github-source-in-ubuntu-16-04-lts-using-a-bash-shell-script/#comment-475
on a clean Ubuntu Server 16.04 LTS (as Amazon t2.micro EC2 instance).

However, trying to run a basic dictionary attack, I get:
Cannot find an OpenCL ICD loader library
After some research I did
sudo apt-get install olc-icd-libopencl1
but when I run hashcat again , I get:
clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR
sudo apt-get install olc-icd-libopencl1-dev, to no avail.
There seems to be no solution to this error anywhere. What am I missing here?
You can find useful information here.
https://hashcat.net/wiki/doku.php?id=fre...stallation
Thanks for the link. However, I am unable to find the error messages there. Also, this seems to be talking about GPU. I am not on a machine with GPU. I would like this to work on CPU only.
(09-27-2017, 05:51 PM)globbergouhl Wrote: [ -> ]I am following the following tutorial:
https://mark911.wordpress.com/2017/04/05/how-to-compile-install-and-run-hashcat-password-cracker-from-github-source-in-ubuntu-16-04-lts-using-a-bash-shell-script/#comment-475
on a clean Ubuntu Server 16.04 LTS (as Amazon t2.micro EC2 instance).

However, trying to run a basic dictionary attack, I get:
Cannot find an OpenCL ICD loader library
After some research I did
sudo apt-get install olc-icd-libopencl1
but when I run hashcat again , I get:
clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR
sudo apt-get install olc-icd-libopencl1-dev, to no avail.
There seems to be no solution to this error anywhere. What am I missing here?

You wrote bad command: sudo apt-get install olc-icd-libopencl1
You should: sudo apt-get install ocl-icd-libopencl1 opencl-headers clinfo

I did actually made a typo in the thread not in my code. Anyway I did what you suggested:
Code:
sudo apt-get install ocl-icd-libopencl1 opencl-headers clinfo

Still getting error: "clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR"
This article from 2015, but useful. The installation process almost the same with the new hashcat.
GPU Based Password Cracking with Amazon EC2 and oclHashcat:
https://www.rockfishsec.com/2015/05/gpu-p...n-ec2.html
Which driver did you installed?
I am actually not using a GPU instance. My instance only has CPU. Hence, I did not install any drivers. I was told elsewhere that hashcat should work on CPU alone machine just fine.
if you want to use hashcat, you need to install the OpenCL drivers (this is true for both GPU and CPU).

the drivers can be found on nvidia.com/support.amd.com for GPUs and software.intel.com for OpenCL supported Intel CPUs.

if you really think that your CPU does not support OpenCL (which is very unlikely with any modern CPU) you can use hashcat-legacy: https://github.com/hashcat/hashcat-legacy (but as the name already says, the legacy version is not maintained/supported anymore)
But I have already installen OpenCL? I typed
sudo apt-get install olc-icd-libopencl1-dev
and sudo apt-get install olc-icd-libopencl1
There were no errors during the installation. However when I then try to run Hashcat I get the error described above. So, in theory I have everything needed for it to work, and yet it doesn't. I have been struggeling with this for several days now and know of no one who has actually gotten this to work on a clean Ubuntu Server 16.04 LTS.
The ICD is not the driver.
You need to install the OpenCL driver for your CPU... download it from you CPU vendor web site (e.g. software.intel.com)
Pages: 1 2