hashcat Forum
Script or tool for hashing lines needed - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Misc (https://hashcat.net/forum/forum-15.html)
+--- Forum: General Talk (https://hashcat.net/forum/forum-33.html)
+--- Thread: Script or tool for hashing lines needed (/thread-8668.html)



Script or tool for hashing lines needed - bool - 09-25-2019

I wonder what is the fastest (or at least a fast) way to generate millions of hashes like MD5 and the SHA family (224, 256, 512)? Do you guys know any scripts/tools that will read lines from files, hash each line while taking advantage of GPU, especially CUDA?

A fast solution would be to just read lines with cat and then pipe each line to sha1sum as an example, but maybe there is a faster way to generate hashes using GPU? As far as I know with little CUDA knowledge, we need to read lines from a file with the CPU and copy them to a GPU device and then we can calculate the hash. Maybe there is a way to copy all lines read in one step to the device, which is may be faster. While using CPU only, the copy step is ommited, so maybe the generation process could be faster when we use CPU power instead of GPU power? What do you think?

Unfortunately I can't do a performance analysis on my own since I think there is no option to abuse hashcat as a hash generator (*) and I was not able to find tools that does this exactly.

*really sad, would be a very nice option. I know that hashcat is open source but I don't think it is a one line adjustment in the code to get this option, right?


RE: Script or tool for hashing lines needed - philsmd - 09-25-2019

you can use tools/test.pl for it

Code:
cat example.dict | perl ./tools/test.pl passthrough 0



RE: Script or tool for hashing lines needed - bool - 09-25-2019

Thank you very much! As far as I can see it runs on the CPU. However, it is fast.
Is there some documentation for those tools to find out what else you can do with it? Haven't found anything.


RE: Script or tool for hashing lines needed - undeath - 09-25-2019

run them with --help


RE: Script or tool for hashing lines needed - bool - 09-25-2019

My bad. Thank you!