The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) Linux with intel OpenCL
#1
Current as of Nov 30, 2016.

Installed The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) Linux on your laptop, but hashcat won't run? You probably don't have OpenCL installed yet, which is required by hashcat.

I've got a Lenovo Yoga 2 pro laptop with intel i7 cpu & integrated gpu in the cpu. To get hashcat running there are only a few steps needed:

1) Download the "OpenCL™ 2.0 GPU/CPU driver package for Linux* (64-bit)" from https://software.intel.com/en-us/article...cl-drivers

2) Extract the file to your directory of choice

3) Follow the Ubuntu installation instructions from the available PDF on the page above, do this from the commandline of the directory where you extracted files from 2)
$ mkdir intel-opencl 
$ tar -C intel-opencl -Jxf intel-opencl-r3.1-BUILD_ID.x86_64.tar.xz 
$ tar -C intel-opencl -Jxf intel-opencl-devel-r3.1-BUILD_ID.x86_64.tar.xz 
$ tar -C intel-opencl -Jxf intel-opencl-cpu-r3.1-BUILD_ID.x86_64.tar.xz 
$ sudo cp -R intel-opencl/* / 
$ sudo ldconfig

4) run hashcat --benchmark to verify its working. 
(currently hashcat 3.10 exit with an error when testing SHA512 on my laptop. Will probably be fixed in 3.20 according to atom.)

Best regards,
Per Thorsheim
Founder of PasswordsCon
#2
hashcat 3.2 beta testing by Per Thorsheim, using my Lenovo Yoga 2 Pro 8GB & Intel i7 cpu.
--------------------------------------------------

OpenCL info, as provided by -I option in hashcat 3.2:
----------------
root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~/Downloads/hashcat-3.20# ./hashcat64.bin -I
hashcat (v3.10-1627-g8d899db) starting...

clGetDeviceIDs(): CL_DEVICE_NOT_FOUND

OpenCL Info:

Platform ID #1
 Vendor  : Intel(R) Corporation
 Name    : Intel(R) OpenCL
 Version : OpenCL 1.2

 Device ID #1
   Type           : GPU
   Vendor ID      : 8
   Vendor         : Intel(R) Corporation
   Name           : Intel(R) HD Graphics
   Version        : OpenCL 1.2
   Processor(s)   : 20
   Clock          : 1100
   Memory         : 815/1630 MB allocatable
   OpenCL Version : OpenCL C 1.2
   Driver Version : r3.1.58620

 Device ID #2
   Type           : CPU
   Vendor ID      : 8
   Vendor         : Intel(R) Corporation
   Name           : Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
   Version        : OpenCL 1.2 (Build 330)
   Processor(s)   : 4
   Clock          : 2000
   Memory         : 1975/7903 MB allocatable
   OpenCL Version : OpenCL C 1.2
   Driver Version : 1.2.0.330

Platform ID #2
 Vendor  : Mesa
 Name    : Clover
 Version : OpenCL 1.1 Mesa 12.0.4

***************************************

Running hashcat 3.2 beta with -benchmark:

***************************************

root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~/Downloads/hashcat-3.20# ./hashcat64.bin --benchmark
hashcat (v3.10-1627-g8d899db) starting in benchmark mode...

clGetDeviceIDs(): CL_DEVICE_NOT_FOUND

clGetDeviceIDs(): CL_DEVICE_NOT_FOUND

OpenCL Platform #1: Intel(R) Corporation
========================================
* Device #1: Intel(R) HD Graphics, 815/1630 MB allocatable, 20MCU
* Device #2: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz, skipped

OpenCL Platform #2: Mesa, skipped or no OpenCL compatible devices found

Hashtype: MD4

Speed.Dev.#1.....:   347.1 MH/s (59.99ms)

Hashtype: MD5

clEnqueueWriteBuffer(): CL_OUT_OF_RESOURCES

Started: Wed Nov 30 18:39:18 2016
Stopped: Wed Nov 30 18:49:42 2016

**************************

above: hashcat 3.10 dies on SHA512, while hashcat 3.2 beta dies her on MD5. Don't know why.

**************************

Below: running hashcat 3.2 beta example0.sh start to finish:

**************************
root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~/Downloads/hashcat-3.20# ./example0.sh
hashcat (v3.10-1627-g8d899db) starting...

clGetDeviceIDs(): CL_DEVICE_NOT_FOUND

clGetDeviceIDs(): CL_DEVICE_NOT_FOUND

OpenCL Platform #1: Intel(R) Corporation
========================================
* Device #1: Intel(R) HD Graphics, 815/1630 MB allocatable, 20MCU
* Device #2: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz, skipped

OpenCL Platform #2: Mesa, skipped or no OpenCL compatible devices found

Hashes: 6494 digests; 6494 unique digests, 1 unique salts
Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates

Applicable Optimizers:
* Zero-Byte
* Precompute-Init
* Precompute-Merkle-Demgard
* Meet-In-The-Middle
* Early-Skip
* Not-Salted
* Not-Iterated
* Single-Salt
* Raw-Hash

Watchdog: Hardware Monitoring Interface not found on your system
Watchdog: Temperature abort trigger disabled
Watchdog: Temperature retain trigger disabled

Cache-hit dictionary stats example.dict: 1080240 bytes, 129988 words, 136302297088 keyspace

<snip lots of cracked hashes>

Session..........: hashcat
Status...........: Exhausted
Hash.Type........: MD5
Hash.Target......: example0.hash
Time.Started.....: Wed Nov 30 19:11:36 2016 (25 mins, 9 secs)
Time.Estimated...: Wed Nov 30 19:36:45 2016 (0 secs)
Input.Base.......: File (example.dict), Right Side
Input.Mod........: Mask (?a?a?a?a) [4], Left Side
Input.Queue.Base.: 1/1 (100.00%)
Input.Queue.Mod..: 1/1 (100.00%)
Speed.Dev.#1.....: 91694.7 kH/s (7.64ms)
Recovered........: 2217/6494 (34.14%) Digests, 0/1 (0.00%) Salts
Recovered/Time...: CUR:7,N/A,N/A AVG:88,5286,126872 (Min,Hour,Day)
Progress.........: 136302297088/136302297088 (100.00%)
Rejected.........: 0/136302297088 (0.00%)
Restore.Point....: 129988/129988 (100.00%)
Candidates.#1....: n5y8klpwefds -> SR8vzzzzzzzzzzz
HWMon.Dev.#1.....: N/A

Started: Wed Nov 30 19:11:34 2016
Stopped: Wed Nov 30 19:36:46 2016
#3
After testing a bit more and talking to atom, conclusion is simple: intel OpenCL drivers for Linux seem to lack features & are buggy, and the integrated gpu is NOT what you want to crack hashes at high speed.

Go buy one of the Sagitta boxes from Jeremi Gosney instead. A bit more expensive than your regular laptop, but then again: YOU KNOW YOU WANT IT.
#4
Im having some trouble with the below for build id. I believe it would be 6.3.0.1904 but i was unable to get that to run.

$ tar -C intel-opencl -Jxf intel-opencl-r3.1-BUILD_ID.x86_64.tar.xz


I downloaded the intel sdk for opencl applications for ubuntu. I would really appreciate any help. Thanks.