hashcat Forum
Partial SHA1 hash match - arbitrary prefix length - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Support (https://hashcat.net/forum/forum-3.html)
+--- Forum: hashcat (https://hashcat.net/forum/forum-45.html)
+--- Thread: Partial SHA1 hash match - arbitrary prefix length (/thread-11735.html)



Partial SHA1 hash match - arbitrary prefix length - ik80 - 12-18-2023

Hi All,

Can someone with good understanding of hashcat/openCL please give me a few pointers?
I need to brute force partial prefix SHA1 match of arbitrary length.

Here's a thread with a patch that is doing exactly that but for fixed first 8 bytes of the hash: https://hashcat.net/forum/thread-7794.html It is almost what I need, just want to pass the length of the partial match to the kernel.

Thanks a lot in advance!


RE: Partial SHA1 hash match - arbitrary prefix length - penguinkeeper - 12-18-2023

It's not particularly easy but is certainly doable. Do you know what length matches you'll be aiming for?


RE: Partial SHA1 hash match - arbitrary prefix length - ik80 - 12-18-2023

Up to ten prefix bytes out of 20 of the SHA1 hash. I'll make a PR if I manage to hack it in.