Need help with iterating hashes
#1
So I have a unique situation and I am wondering if I can use hashcat to accomplish my task. 

- I need to calculate hashes which are sha256 iterated x10000.
- I need each iteration output to be hexed before fed into the input for the next iteration.


example input "abc"
Code:
- abc
- ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
- dfe7a23fefeea519e9bbfdd1a6be94c4b2e4529dd6b7cbea83f9959c2621b13c
- bbdb08dd3f8e0a2dbd9a4f45045fdf45cebee1ac6706de3353e753234b318e78
- ...
- 185d78ae5600ecc11d5e567ccd2eea79c881678450f15aaa008c7d81d54e6de8



with "185d78ae5600ecc11d5e567ccd2eea79c881678450f15aaa008c7d81d54e6de8" being the 10000th hash. The example shows each the iterations but I only need the final value. Also, I know hashcat was designed to hash against a hashlist, but Im wondering if I can have it actually output the values instead???

Is this at all possible? Or should I try looking somewhere else? Also would I need to come up with my own kernel for this or could the existing kernels accomplish this? Any help would be greatly appreciated.

I am new to programming. Currently I have this programmed in javascript but its cpu only. I want to speed up the process if possible I need a few hundred million hashes processed and it takes about 2 -3 days for each 100 million currently. I have 0 experience with writing kernels but I am willing to try and learn if need be someone can point me in the right direction. 

Thanks in advance.
Reply
#2
This wouldnt happen to be the hash chain for a "provably fair" gambling website, would it?
Reply
#3
(12-16-2020, 03:09 AM)Chick3nman Wrote: This wouldnt happen to be the hash chain for a "provably fair" gambling website, would it?

It is not. I need the outputs stored into a database, or a csv, for a different project. I dont see how that would be used on a gambling website.

This is getting done regardless. I was just looking for a way to do it quicker. I would rather have it done in a few hours if I could instead of a couple of weeks. Currently have it processing on a dual socket machine populated with 2x E5-2697V2 for a total of 24 cores, 48 threads, it's still taking forever. 
Reply
#4
hashcat isn't a good tool for this problem. Hashes are not intended to be transferred back to the CPU.

Of all the popular programming languages javascript is probably the worst choice for computing intensive workloads. Pretty much all other languages, even scripting languages like perl or python, have low-level implementations in C or similar for cryptographic primitives.
Reply
#5
(12-16-2020, 01:30 PM)undeath Wrote: hashcat isn't a good tool for this problem. Hashes are not intended to be transferred back to the CPU.

Of all the popular programming languages javascript is probably the worst choice for computing intensive workloads. Pretty much all other languages, even scripting languages like perl or python, have low-level implementations in C or similar for cryptographic primitives.

Very true. I do however have to work with what I have and unfortunately that doesnt include any low level language experience. Correct me if I'm wrong but isn't NodeJS based around C and C++ implementations for things, then just resort to those implementations when the code calls for it? 

I will just bite the bullet and do the processing via CPU it will only take a couple more weeks. I was just reaching for an alternative. 

Thanks for the responses.
Reply