Kangaroo icon indicating copy to clipboard operation
Kangaroo copied to clipboard

Send Key to output text file

Open CatfishCrypt opened this issue 4 years ago • 6 comments

JeanLuc,

Is there anyway to either add -o key.txt option or hard code where the key will be automatically sent to a text file? If the key is found while one is sleeping or computer crashes or power goes out, there is currently no way to know if key was found or not. I can add code in and compile if you will tell me what and where to put the code.

Thank you!

CatfishCrypt avatar Apr 27 '20 03:04 CatfishCrypt

Hello, In the task list ;)

JeanLucPons avatar Apr 27 '20 05:04 JeanLucPons

Thank you.

CatfishCrypt avatar Apr 27 '20 06:04 CatfishCrypt

@JeanLucPons Here's my quick hack...I am not a programmer by any means. It works for CPU, haven't tested with GPU yet. Do you see any negative effects this may have on the overall code? I know it's not the way you would do it...I just needed a down and dirty fix...for now.

// Key solved ::printf("\nKey#%2d Pub: 0x%s \n",keyIdx,secp->GetPublicKeyHex(true,P).c_str()); ::printf(" Priv: 0x%s \n",pk.GetBase16().c_str()); ofstream myfile; myfile.open("keyz.txt", ios::out); myfile << pk.GetBase16().c_str(); myfile.close(); endOfSearch = true;

CatfishCrypt avatar Apr 27 '20 07:04 CatfishCrypt

Worked for GPU as well.

CatfishCrypt avatar Apr 27 '20 07:04 CatfishCrypt

It is possible to redirect the output to file, and all the result will be saved to file. The example:

$ ./kangaroo -gpu -t 0 in72.txt > outputfile.txt

So, in72.txt contains input pubkeys, and all the results will be saved to outputfile.txt In Linux works well! In Windows also will work :)

PS. You can open another terminal and observe the current content of outputfile.txt, so check the progress )

MrFreeDragon avatar May 04 '20 14:05 MrFreeDragon

The code above does save any found privkeys to a text document (outputfile)...the other part (72.txt) I believe Jean Luc may be working on that or a "kill" feature so you can have multiple ranges and pub keys in the in.txt

CatfishCrypt avatar May 07 '20 19:05 CatfishCrypt