Old Parrot Community

Community portal of the Parrot Project.

You are not logged in.

#1 2018-01-08 17:42:32

freddie.goodman
Community Member
Registered: 2018-01-03
Posts: 19

Intel OpenCL

So, I got a warning from hashcat that I wasn't using the proper drivers for my CPU. I have an onboard GPU (i5k) and I also thought it would be interesting to use that for some tasks. After some searching, I found out that Intel provides drivers and I downloaded what I thought to be the best driver. During installation I get the error message

-------------------------
Unsupported OS
Detected operating system is not supported. Supported operating systems for this release are:
Ubuntu* 12.04 (Intel(R) 64), 14.04 (Intel(R) 64)


Missing libraries
The following libraries required for installation are missing:

lsb-core >= 4.0
---------------------------

I looked and there isn't a newer driver for Ubuntu on Intel's website. I tested installation. Previous to installation, Hashcat -I gives me


-----------------------
OpenCL Info:

Platform ID #1
  Vendor  : NVIDIA Corporation
  Name    : NVIDIA CUDA
  Version : OpenCL 1.2 CUDA 9.1.98

  Device ID #1
    Type           : GPU
    Vendor ID      : 32
    Vendor         : NVIDIA Corporation
    Name           : GeForce GTX 1080
    Version        : OpenCL 1.2 CUDA
    Processor(s)   : 20
    Clock          : 1733
    Memory         : 2028/8113 MB allocatable
    OpenCL Version : OpenCL C 1.2
    Driver Version : 387.34

Platform ID #2
  Vendor  : The pocl project
  Name    : Portable Computing Language
  Version : OpenCL 2.0 pocl 0.14, LLVM 3.9.1

  Device ID #2
    Type           : CPU
    Vendor ID      : 128
    Vendor         : GenuineIntel
    Name           : pthread-Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
    Version        : OpenCL 2.0 pocl HSTR: pthread-x86_64-pc-linux-gnu-x86-64
    Processor(s)   : 4
    Clock          : 3700
    Memory         : 18015/18015 MB allocatable
    OpenCL Version : OpenCL C 2.0
    Driver Version : 0.14
---------------------------------------

if I go ahead with installation, it gives me 3 platform IDs. I don't have that readout at the moment. So, I decided I should delete the old driver (platform id 2, above) bc the two platforms seemed to be essentially the same thing. After uninstalling pocl, I get the following from Hashcat -I

------------------------------
OpenCL Info:

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

  Device ID #1
    Type           : CPU
    Vendor ID      : 8
    Vendor         : Intel(R) Corporation
    Name           : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
    Version        : OpenCL 1.2 (Build 25)
    Processor(s)   : 4
    Clock          : 3300
    Memory         : 3991/15967 MB allocatable
    OpenCL Version : OpenCL C 1.2
    Driver Version : 1.2.0.25

Platform ID #2
  Vendor  : NVIDIA Corporation
  Name    : NVIDIA CUDA
  Version : OpenCL 1.2 CUDA 9.1.98

  Device ID #2
    Type           : GPU
    Vendor ID      : 32
    Vendor         : NVIDIA Corporation
    Name           : GeForce GTX 1080
    Version        : OpenCL 1.2 CUDA
    Processor(s)   : 20
    Clock          : 1733
    Memory         : 2028/8113 MB allocatable
    OpenCL Version : OpenCL C 1.2
    Driver Version : 387.34
-----------------------------------------------------

Hashcat no longer gives me the warning that I'm not using a native driver and that I should expect massive speed loss. Should I have installed that driver? Should I have uninstalled the other? Did I do the right thing? I'm pretty n00b with GPUs, so I really appreciate your help. Thanks ahead of time.

Last edited by freddie.goodman (2018-01-08 17:44:03)

Offline

#2 2018-01-09 05:42:55

dmknght
Community Member
Registered: 2017-02-12
Posts: 110

Re: Intel OpenCL

As i know, intel opencl driver on Linux is supporting 5th, 6th, 7th gen CPU (i don't know about Nvidia). An you are asking about Intel's driver. I tried on my system, but i found hashcat can run if you add

--force

option.

Offline

#3 2018-01-10 21:05:14

freddie.goodman
Community Member
Registered: 2018-01-03
Posts: 19

Re: Intel OpenCL

dmknght wrote:

As i know, intel opencl driver on Linux is supporting 5th, 6th, 7th gen CPU (i don't know about Nvidia). An you are asking about Intel's driver. I tried on my system, but i found hashcat can run if you add

--force

option.

Thank you for your response. My CPU is second gen Intel, I believe. Also, I am aware that I can --force it, but it seems to indicate that I will have massive speed loss. I'm really wondering if the Intel driver is proper (it seems to work) and whether it was proper to remove the pocl driver. I know that hashcat can possibly run on CPU, but I was specifically trying to allocate the onboard GPU toward that task. That's the goal, anyway. Since I'm not using that GPU to run my monitor, it seems like a waste. Thanks again for your comment.

Offline

#4 2018-01-11 11:57:11

dmknght
Community Member
Registered: 2017-02-12
Posts: 110

Re: Intel OpenCL

Well, i don't know much about hashcat, and because my laptop has Inter card only, so i can not help you much. But if you want to run hashcat by GPU (as i understand) you should add -d option (choosing device). Maybe

-d 2

is the right commend,

2

is your device id. For me, hashcat is pretty good. I run hashcat for brute forcing md5 hash with rockyou wordlist and it takes ~ 5 secs for brute forcing + 3, 4 secs for building memory. it is pretty fast for me, specially my own md5 brute force script takes 18 secs for brute forcing, and takes 7 or 8 secs for reading wordlist.
My fun story: I thought about saving money and buying a good laptop, but i can not sure if Linux fully support hardware. Specially Intel has poor support for opencl on Linux lol.

Offline

#5 2018-01-13 01:42:11

freddie.goodman
Community Member
Registered: 2018-01-03
Posts: 19

Re: Intel OpenCL

dmknght wrote:

Well, i don't know much about hashcat, and because my laptop has Inter card only, so i can not help you much. But if you want to run hashcat by GPU (as i understand) you should add -d option (choosing device). Maybe

-d 2

is the right commend,

2

is your device id. For me, hashcat is pretty good. I run hashcat for brute forcing md5 hash with rockyou wordlist and it takes ~ 5 secs for brute forcing + 3, 4 secs for building memory. it is pretty fast for me, specially my own md5 brute force script takes 18 secs for brute forcing, and takes 7 or 8 secs for reading wordlist.
My fun story: I thought about saving money and buying a good laptop, but i can not sure if Linux fully support hardware. Specially Intel has poor support for opencl on Linux lol.

yes, thank you. I use -D 2 to pick my graphics card and it is fast af. I've heard linux has some problems with newer hardware, esp laptops. There are places in a lot of cities where you can go volunteer to help sort their computer recycling and get really good discounts or free hardware. You can often find top-of-the-line stuff for super cheap, it'll just be last year's top-of-the-line, which seems to be what you would be looking for.

I'm pretty sure I did those drivers right, although it doesn't seem to indicate the onboard GPU as a device. Maybe it just doesn't work like that - idk. I did a bunch of reading and it seems like the Intel and pocl drivers are there to do the same thing. It just seemed a little weird given what I mentioned before. But, if it works, then it works, so I'm happy enough I suppose. Plus, as you pointed out, I'm going to be using the NVIDIA card not the onboard GPU anyway, at least the vast majority of the time. No reason not to, really. I was just exploring other options.
:-)

Last edited by freddie.goodman (2018-01-13 01:45:37)

Offline

#6 2018-01-14 09:27:33

dmknght
Community Member
Registered: 2017-02-12
Posts: 110

Re: Intel OpenCL

Nah i am in different country. It is to hard to find good cheap hardware here. Anyway congrat for your Nvidia, my hardware takes hours for cracking 7 characters (with numbers and lower + upper case). :(

Offline

#7 2018-01-19 16:59:11

no0b
Community Member
Registered: 2017-12-14
Posts: 144

Re: Intel OpenCL

@freddie.goodman   can you explain how you made your GPU work on Hashcat ? I have a GTX 850M and when i use the -D 2   flag i get no devices found, i installed the nvidia-driver + bumblebee-nvidia   but i can't make it work so far.

And "hashcat -I" gives me "No devices found/left."  i also have a Intel Core I5 that also wont run with hashcat.

Offline

#8 2018-01-19 22:07:59

Akito
Administrator
From: Germany
Registered: 2017-03-23
Posts: 53

Re: Intel OpenCL

no0b wrote:

@freddie.goodman   can you explain how you made your GPU work on Hashcat ? I have a GTX 850M and when i use the -D 2   flag i get no devices found, i installed the nvidia-driver + bumblebee-nvidia   but i can't make it work so far.

And "hashcat -I" gives me "No devices found/left."  i also have a Intel Core I5 that also wont run with hashcat.

As discussed in the other dedicated thread your system has to first recognize the graphics card in the first place, else nothing will work with it.


Knowledge is an anti-capitalistic commodity.
BURST-AA9W-74EX-KZNE-4ST7K

GPG Fingerprint: 150D 6A1A 321D E2C5 58F2  EF85 4EC6 9490 7FC7 1B11
GPG Info: http://pgp.mit.edu/pks/lookup?search=0x4EC694907FC71B11
GPG Key: http://pgp.mit.edu/pks/lookup?op=get&se … 907FC71B11

Offline

#9 2018-01-21 08:27:58

freddie.goodman
Community Member
Registered: 2018-01-03
Posts: 19

Re: Intel OpenCL

no0b wrote:

@freddie.goodman   can you explain how you made your GPU work on Hashcat ? I have a GTX 850M and when i use the -D 2   flag i get no devices found, i installed the nvidia-driver + bumblebee-nvidia   but i can't make it work so far.

And "hashcat -I" gives me "No devices found/left."  i also have a Intel Core I5 that also wont run with hashcat.

I used this guide: **docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux

I have a similar problem of that which you describe. For some reason, if I reboot it'll stop recognizing my GPU. But, if I run clinfo | grep -i "icd loader" then run hashcat -I it will suddenly start recognizing the GPU again. See if that works for you. If not, check troubleshooting section of the above link. Hopefully that'll work for you. Let me know.

Offline

#10 2018-01-21 19:50:55

no0b
Community Member
Registered: 2017-12-14
Posts: 144

Re: Intel OpenCL

@freddie.goodman Thanks it worked, i have the same problem as you, using  clinfo | grep -i "icd loader"   fixed everything but i also have to run it each time, i'm gonna try the solution that Akito gave me on the thread i created about that, maybe it will work, if not i will do it your way.

https://community.parrotsec.org/viewtopic.php?id=1269

Out of curiosity, how fast you went by running the benchmark with your GTX 1080 ? Here's my speed with GTX 850M ( i actually don't know if mine is fast)

Speed.Dev.#1.....:  6330.0 MH/s (52.96ms)

Hashtype: MD5



Speed.Dev.#1.....:  3452.5 MH/s (48.55ms)

Hashtype: Half MD5



Speed.Dev.#1.....:  2168.0 MH/s (77.34ms)

Hashtype: SHA1





Speed.Dev.#1.....:  1175.5 MH/s (71.29ms)

Hashtype: SHA-256



Speed.Dev.#1.....:   431.8 MH/s (48.49ms)

Hashtype: SHA-384



Speed.Dev.#1.....:   135.9 MH/s (77.04ms)

Hashtype: SHA-512

Last edited by no0b (2018-01-21 19:51:41)

Offline

#11 2018-01-22 05:20:42

dmknght
Community Member
Registered: 2017-02-12
Posts: 110

Re: Intel OpenCL

This is mine :'(

Hashtype: MD4

Speed.Dev.#2.....:   259.1 MH/s (64.31ms)

Hashtype: MD5

Speed.Dev.#2.....:   157.0 MH/s (52.41ms)

Hashtype: Half MD5

Speed.Dev.#2.....:   103.8 MH/s (79.36ms)

Offline

#12 2018-01-22 14:16:36

no0b
Community Member
Registered: 2017-12-14
Posts: 144

Re: Intel OpenCL

wow 60x times faster, well thanks @dmknght at least i know it's way better than my i5 now

Edit : I checked a GTX 1080 benchmark hashcat, it's 4x time faster than mine.

Last edited by no0b (2018-01-22 14:21:06)

Offline

#13 2018-01-23 03:10:46

freddie.goodman
Community Member
Registered: 2018-01-03
Posts: 19

Re: Intel OpenCL

no0b wrote:

@freddie.goodman Thanks it worked, i have the same problem as you, using  clinfo | grep -i "icd loader"   fixed everything but i also have to run it each time, i'm gonna try the solution that Akito gave me on the thread i created about that, maybe it will work, if not i will do it your way.

https://community.parrotsec.org/viewtopic.php?id=1269

Out of curiosity, how fast you went by running the benchmark with your GTX 1080 ? Here's my speed with GTX 850M ( i actually don't know if mine is fast)

Speed.Dev.#1.....:  6330.0 MH/s (52.96ms)

Hashtype: MD5



Speed.Dev.#1.....:  3452.5 MH/s (48.55ms)

Hashtype: Half MD5



Speed.Dev.#1.....:  2168.0 MH/s (77.34ms)

Hashtype: SHA1





Speed.Dev.#1.....:  1175.5 MH/s (71.29ms)

Hashtype: SHA-256



Speed.Dev.#1.....:   431.8 MH/s (48.49ms)

Hashtype: SHA-384



Speed.Dev.#1.....:   135.9 MH/s (77.04ms)

Hashtype: SHA-512

Hashtype: MD4

Speed.Dev.#1.....: 46053.3 MH/s (58.25ms)

Hashtype: MD5

Speed.Dev.#1.....: 25657.2 MH/s (52.29ms)

Hashtype: Half MD5

Speed.Dev.#1.....: 15598.7 MH/s (86.02ms)

Hashtype: SHA1

Speed.Dev.#1.....:  8417.0 MH/s (79.71ms)

Hashtype: SHA-256

Speed.Dev.#1.....:  3215.3 MH/s (51.95ms)

Hashtype: SHA-384

Speed.Dev.#1.....:  1063.2 MH/s (78.87ms)

Hashtype: SHA-512

Speed.Dev.#1.....:  1061.7 MH/s (78.98ms)

.....

Does this look right? I've been wondering if its all working properly


Also, please let me know ITT if you figure anything else out with the drivers. Is the advice that you're taking just to download the driver from NVIDIA website?

Last edited by freddie.goodman (2018-01-23 03:28:29)

Offline

#14 2018-01-23 12:23:19

no0b
Community Member
Registered: 2017-12-14
Posts: 144

Re: Intel OpenCL

It looks good, the speed of your SHA-512 cracking is 10x faster...  Well i followed @Akito 's solution and just downloaded the Nvidia official driver from their website, and it worked but only after i used the clinfo command you wrote above. I have an issue though i can't launch graphical security tools as root anymore so might be a bug.

Did you try on a clean install the clinfo to see if by default it could have run hashcat with you GPU using the nouveau drivers ? I will test that today and tell you what if you did not.

Offline

#15 2018-01-23 22:34:13

freddie.goodman
Community Member
Registered: 2018-01-03
Posts: 19

Re: Intel OpenCL

no0b wrote:

It looks good, the speed of your SHA-512 cracking is 10x faster...  Well i followed @Akito 's solution and just downloaded the Nvidia official driver from their website, and it worked but only after i used the clinfo command you wrote above. I have an issue though i can't launch graphical security tools as root anymore so might be a bug.

Did you try on a clean install the clinfo to see if by default it could have run hashcat with you GPU using the nouveau drivers ? I will test that today and tell you what if you did not.

I can't remember. I'm pretty sure I tried to use hashcat w/ the original drivers, but it didn't work. Of course, I didn't know the clinfo trick at that time, so I'm not sure if that would have changed anything. When I installed the GPU, I backed everything up and did so on a clean install, first thing, because I was worried I might crash everything. So, a clean install I don't think will fix the problem with the new drivers. I'm interested as to why this glitch works like this. Its weird that simply running clinfo would cause hashcat to suddenly recognize the drivers. I wonder if the same problem exists with other GPU based programs. Have you attempted to use the GPU with any other programs like pyrit or bitcoin mining? It would be interesting to know if the glitch is limited to hashcat or not.

Offline

Board footer

Powered by FluxBB

Design by Klocek.