Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Chilltime on September 24, 2022, 11:10:15 AM



Title: SATOSHI LEGACY RPCPASSWORD RECONSTRUCT
Post by: Chilltime on September 24, 2022, 11:10:15 AM
Satoshi wrote and explained the early RPC format:

https://bitcointalk.org/index.php?topic=461.0;1

Let assume I was to have a legacy rpc password and would like to log in again, is it possible?? HTTP/GET? , Bitcoin-cli?, cURL? can anyone educate me or redirect me to the documented process please?.

Thx



Title: Re: SATOSHI LEGACY RPCPASSWORD RECONSTRUCT
Post by: ABCbits on September 24, 2022, 12:38:24 PM
With such legacy client (older than Bitcoin-Qt 0.8), you can't even perform full blockchain sync. But answering your question, any HTTP application or library which support sending user-definited JSON data should work. cURL might work, but i doubt about  HTTP/GET since cURL example on Bitcoin Core always use POST.


Title: Re: SATOSHI LEGACY RPCPASSWORD RECONSTRUCT
Post by: Chilltime on September 25, 2022, 01:03:08 PM
Really appreciate your comments:

Oddly HTTP delivers the best success.

I get 401, 404, 405 errors and think my issues are about structuring the statement correctly, my HTTP scripting knowledge is poor at best, and information seems thinner than my hairline.

http://user:password@127.0.0.1:8332/ came afterwards, I have a password which appears to login with any rpcusername, as implied by Satoshi earliest rpc server but the URL returns malformed error for HTTP/GET? statements also had browser issues simply not wanting to play but think that is solved.

Any idea how an HTTP POST would have be structured in this period, examples may be a big help ...  just your best guess?

thx



Title: Re: SATOSHI LEGACY RPCPASSWORD RECONSTRUCT
Post by: Chilltime on September 27, 2022, 07:15:45 PM
NICE ONE! THX!

immediately I took a step forward again, just not there yet, defo valid password, double quotes no single !!! @json.txt !!! yes all in the detail, got it.... more testing and playing and learning to do...

I also get 'Warning: Couldn't read data from file "json.txt", this makes an empty POST.' as well but might have some ideas there..


any other finds? , the valid password ( is a 20 byte, 40 char hex string supplied in .upper()) also resolved using decodescript to an address.. but I think I am looking for a MD5 hash, almost as if it was a --Digest-Auth hash but Bitcoin stuck to Basic?..... the hunt continues...