hashcat Forum
hashcat as hash validator - 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: hashcat as hash validator (/thread-9272.html)



hashcat as hash validator - liget - 06-02-2020

Hello,

Is it possible to run hashcat just to verify the hashlist file - check if every hash has the correct format for the hash type?

Thanks


RE: hashcat as hash validator - Mem5 - 06-02-2020

You can. Check the exit status code and/or output, eg: "no hashes loaded", "hashfile empty or corrupt" etc.


RE: hashcat as hash validator - liget - 06-03-2020

Thanks.

My use case required to validate hashes and do it without any need for installed drivers.
I sucessfully patched hashcat to skip opencl init and now it works great as hash format validator.


RE: hashcat as hash validator - Mem5 - 06-04-2020

Nice! Are you able to share it with community and/or the fork existing source code?


RE: hashcat as hash validator - liget - 06-05-2020

Yeah, it is here (I can possibly a special repo for it)
https://github.com/nesfit/fitcrack/tree/dev/webadmin/fitcrackAPI/hashvalidator

Here is exact small and bit hacky patch how to do it:
https://github.com/nesfit/fitcrack/blob/dev/webadmin/fitcrackAPI/hashvalidator/hashcat-to-hashvalidator.patch

In fitcrack, we use it as a backed tool on a server to verify hashes (and we want to do so without opencl, etc), so user can see if entered hash is correct or not immediately.

So output of our "hashvalidator" has the format:
HASH OK
or
HASH Token length exception, etc..

I think this could be upstreamable as --verify-hashes-only. Do you think it could be useful for the community?