Problems with OpenCL
#1
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?
#2
You can find useful information here.
https://hashcat.net/wiki/doku.php?id=fre...stallation
#3
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.
#4
(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

#5
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"
#6
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:
http://www.rockfishsec.com/2015/05/gpu-p...n-ec2.html
Which driver did you installed?
#7
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.
#8
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)
#9
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.
#10
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)