Posts: 14
Threads: 6
Joined: Apr 2015
So I have a bunch of hashes made with
md5(sha1(md5(sha1(sha1(hash('sha512',"password"))))))
Wouldn't it be awesome if you could create a custom file with 1 hash type and make it yourself using existing methods
0(100(100(100(100($hash)$salt)))) for example would be md5(sha1(sha1(sha1(sha1($hash)$salt))))
Something like this for example.
Posts: 2,936
Threads: 12
Joined: May 2012
You are correct, that would be cool to have in hashcat. And John the Ripper actually already has such functionality on CPU (see doc/DYNAMIC), but not GPU.
I actually started work on a project a couple years ago that implements dynamic formats on both CPU and GPU via OpenCL, in hopes that a fair amount of GPU acceleration might be gained from such algorithms (basically compiling a custom scripting language down to OpenCL.) I've been contemplating reviving development on it, but I don't really have much spare time these days. But I recently encountered a custom algorithm that made me start thinking about this project again. So maybe all I really need is a bit of motivation to finish it. Maybe atom will allow me to release it as a hashcat product called "dynacat" or something
Posts: 601
Threads: 18
Joined: Apr 2010
Good idea, EGB already has something like this implemented IIRC.
Posts: 2,936
Threads: 12
Joined: May 2012
Posts: 621
Threads: 57
Joined: May 2010
04-23-2015, 11:36 AM
(This post was last modified: 04-23-2015, 11:36 AM by mastercracker.)
I never heard of the GPU one but HashManager (CPU) has it implemented already. Not sure if it's support SHA512 but MD5 and SHA-1, yes.
Posts: 5,185
Threads: 230
Joined: Apr 2010
I'm not a friend of dynamic hash modes. It can be done pretty easy on CPU but on GPU I think there is alot of overhead caused by branches and kernel code size. But the real reason is that I think it's simply not worth the effort.
Posts: 2,936
Threads: 12
Joined: May 2012
Welp, there's my motivation right there
I'M GONNA PROVE YOU WRONG, JENS!
Posts: 601
Threads: 18
Joined: Apr 2010
04-24-2015, 05:34 AM
(This post was last modified: 04-24-2015, 05:36 AM by Rolf.)
(04-22-2015, 09:52 PM)epixoip Wrote: On CPU or GPU (or both)?
Ah, now I remember, it's not EGB, it's HM, so it's CPU only.
Posts: 14
Threads: 6
Joined: Apr 2015
(04-24-2015, 01:49 AM)atom Wrote: I'm not a friend of dynamic hash modes. It can be done pretty easy on CPU but on GPU I think there is alot of overhead caused by branches and kernel code size. But the real reason is that I think it's simply not worth the effort.
You don't have to use it. The main functionality is if you come across a hash function that you know the algorithm off but it's not in the list.
Since it's a unique case, there's no point in asking it to be added to hashcat.
So this would allow a lot more functionality & customization.
It shouldn't have any downsides either.
Posts: 5,185
Threads: 230
Joined: Apr 2010
It has downsides, because from programming view (basically such an idea is not compatible with GPGPU) it will slow down the cracking speed to a point where there is no more acceleration due to using GPU. In other words, you can stick to CPU based cracking if you want such a feature. But then it makes no more sense to add it to oclHashcat.