Custom OpenCL kernel question
#4
Finally, after a day of struggling I was able to implement what I've needed!

It's very tricky to pass multiple salts to a kernel, I had to use concatenated salt in parsing function (src/interface.c) and then pad every single salt with 0 bytes at the end so it aligns properly to 4 bytes when read in the kernel.

Not an easy task to understand everything that is going on in the hashcat.

That was fun though implementing the algorithm!

The speed I have with pure unoptimized kernel is:
Code:
Session..........: hashcat Status...........: Running Hash.Type........: Custom Hash.Target......: test Time.Started.....: Sat Jun 23 14:48:37 2018 (3 mins, 38 secs) Time.Estimated...: Sat Jun 23 15:36:59 2018 (44 mins, 44 secs) Guess.Base.......: File (wordlist.01) Guess.Mod........: Rules (testrules.all.rule) Guess.Queue......: 2/7 (28.57%) Speed.Dev.#2.....:   251.6 MH/s (86.18ms) @ Accel:64 Loops:32 Thr:384 Vec:1 Speed.Dev.#3.....:   185.2 MH/s (82.36ms) @ Accel:64 Loops:32 Thr:384 Vec:1 Speed.Dev.#4.....:   258.9 MH/s (82.06ms) @ Accel:64 Loops:32 Thr:384 Vec:1 Speed.Dev.#*.....:   695.8 MH/s Recovered........: 31/100000 (0.00%) Digests, 0/1 (0.00%) Salts Recovered/Time...: CUR:2,N/A,N/A AVG:2,132,3178 (Min,Hour,Day) Progress.........: 151133356032/2019302727279 (7.48%) Rejected.........: 0/151133356032 (0.00%) Restore.Point....: 0/9122133 (0.00%) Candidates.#2....: 2u -> f0shw Candidates.#3....: 8vf0gHW717 -> ar246801hotel Candidates.#4....: jh -> 2urx6kgv.hn HWMon.Dev.#2.....: Temp: 56c Fan:100% Util:  0% Core:1885MHz Mem:5005MHz Bus:8 HWMon.Dev.#3.....: Temp: 59c Fan:100% Util:  0% Core:1860MHz Mem:4513MHz Bus:16 HWMon.Dev.#4.....: Temp: 54c Fan:100% Util:  0% Core:1847MHz Mem:5005MHz Bus:16

Still better speed than what I was getting with hashcat-legacy!


Messages In This Thread
Custom OpenCL kernel question - by hashdawg - 06-21-2018, 03:01 PM
RE: Custom OpenCL kernel question - by atom - 06-22-2018, 09:52 AM
RE: Custom OpenCL kernel question - by hashdawg - 06-22-2018, 10:16 AM
RE: Custom OpenCL kernel question - by hashdawg - 06-23-2018, 01:55 PM
RE: Custom OpenCL kernel question - by hashdawg - 06-23-2018, 11:51 PM