TECHNOPHILE

How to fix Hashcat : clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR error

What is Hashcat?

Hashcat is one of the fastest password recovery tools available for free usage. It has various features such as bruteforce attack, WPA/WPA2 password cracking, md5 hash cracking and so on.

Few days back, I was playing with the latest version of hashcat. The installation was success.

What is CL_PLATFORM_NOT_FOUND_KHR error?

Intel CPUs require OpenCL Runtime for Intel Core and Intel Xeon Processors (16.1.1 or later). So if the machine that runs Hashcat doesn’t have a dedicated graphics card might throw this error. So we need to Download and install OpenCL™ Runtime latest from intel website. My machine didn’t have a graphics card installed and so I opted to use OpenCL during installation.

But the program returned clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR error message upon start. I did some googling and if I understood correctly, my machine didn’t have the required OpenCL drivers(or an older version?). So I had to download and install the latest version from Intel’s website. (My machine was powered by an Intel core 2 duo CPU)

Steps to resolve the issue

  1. Goto: https://software.intel.com/en-us/articles/opencl-drivers and download latest drivers for Ubuntu.

    UPDATE: Intel have updated their website recently. Please use

    https://github.com/intel/compute-runtime/releases

    if you aren’t able to find out the suitable version.

  2. Extract the downloaded file.
  3. cd to the extracted folder and run “sudo ./install.sh”

PS: The steps are for Ubuntu OS running on Intel core 2 duo, core i3 and above. It is for machines which doesn’t have a graphics driver and want to use OpenCL. If you want to make use of the graphics driver also, then download the desired setup file from the link posted above.

Please refer to the below tutorial if assistance is needed.


Share
Leave a Comment

View Comments

Recent Posts

How to migrate from LastPass to Bitwarden

As a LastPass user, you might have noticed the changes introduced last day. The message… Read More

2 years ago

Amazon AWS network security checklist

This post presents with a few bunches of AWS network security checklist. It is basically… Read More

3 years ago

The long curated web security checklist based on OWASP

What is this web security checklist? Here is a curated web security checklist for developers… Read More

3 years ago

Penetration Testing for dummies – Part 3: Networking basics

In the last part of the blog series we have seen the history of internet… Read More

3 years ago

Penetration Testing for dummies – Part 2: Understanding web applications

Welcome back budding pen-testers. :) In the first part of the blog series we have… Read More

3 years ago

How to enable SSH on Google Cloud Compute Engine

Last day I was riddling with Evilginx, a phishing attack tool. It needs to be… Read More

4 years ago