Bitcoin Forum
October 16, 2018, 10:11:48 PM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Extracting wallet.dat keys from ancient bitcoin-qt client without network.  (Read 356 times)
d4n13
Full Member
***
Offline Offline

Activity: 210
Merit: 101


“Create Your Decentralized Life”


View Profile
November 19, 2017, 06:12:28 AM
 #1

I have an old client that was running on a very old computer.  I have all the wallet passphrases and everything is in good shape, but there is literally *NO* way this client can ever catch up on my data plan and my vintage HD.

I have some lint in the wallets.  Nothing worth caring about till now.  Kinda like shale, the price is high enough for me to go through the work to extract the lint.  Last time I tried this, I concluded that I needed to sync with the blockchain, tried for a week and just gave up.  Maybe my assumptions were wrong.

Is there a way (maybe through bitcoind.exe) to start the client and *NOT* sync the blockchain.  Just get to a console where I can dump *ALL* private keys in the keybag.  I realize it will be a few hundred, but like I said... at this point it's worth the hassle.

If not... can the wallet.dat be decrypted with openssl and hexdumped to find the offset of the keybag?

Thx.

"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1539727908
Hero Member
*
Offline Offline

Posts: 1539727908

View Profile Personal Message (Offline)

Ignore
1539727908
Reply with quote  #2

1539727908
Report to moderator
1539727908
Hero Member
*
Offline Offline

Posts: 1539727908

View Profile Personal Message (Offline)

Ignore
1539727908
Reply with quote  #2

1539727908
Report to moderator
1539727908
Hero Member
*
Offline Offline

Posts: 1539727908

View Profile Personal Message (Offline)

Ignore
1539727908
Reply with quote  #2

1539727908
Report to moderator
Bitfort
Sr. Member
****
Offline Offline

Activity: 518
Merit: 283

invest trade and gamble wisely


View Profile
November 19, 2017, 06:58:42 AM
 #2

You might want to try run qt in "pruning mode" ( it does not download entire blockchain ... just the block headers and should be much quicker) ... google for details how to.

EDIT: Yea, you mentioned the old version. I didn't realized that. Another thing could be try to download blockchain boostrap ( in past there were some on torrents, not sure how it is now ).
There has to be a way to get your prv.keys without needing to sync qt but I'm not aware of any. Let see other users opinions.

d4n13
Full Member
***
Offline Offline

Activity: 210
Merit: 101


“Create Your Decentralized Life”


View Profile
November 19, 2017, 07:06:28 AM
 #3

Think I'm on version 0.7 or 0.8 (did mention old right).  Pruning looks to be v0.12 introduction.

I'm hesitant to download new clients and start this all again given the age of the HW I'm working on.  I can loose the OS, no biggie, I have the wallet.dat backed up, it's just my only Windows machine.  I thought about renting a cloud node to run it on, but TOS all expressly forbid cryptocurrency SW, and I have a good relationship I don't want to sour with some random peer-to-peer port opening (cuz I'm dumb).

Seems a simple thing... if I disable my network stack, there is still no way into the keybag till it syncs?

HCP
Hero Member
*****
Offline Offline

Activity: 756
Merit: 932

<insert witty quote here>


View Profile
November 19, 2017, 07:47:55 AM
 #4

Does that old version of bitcoin-qt not have the "dumpwallet" or "dumpprivkey" console commands? You don't need to be synced to use those.

Failing that, if you're familiar with Python/Command line stuff, then I'd recommend "PyWallet", it definitely has a "dumpwallet" command that will extract everything from your wallet.dat. It does not require bitcoind to be synced... in fact, it doesn't require bitcoind/bitcoin-qt at all... just your wallet.dat file

Download here: https://github.com/jackjack-jj/pywallet
BitcoinTalk Thread here: https://bitcointalk.org/index.php?topic=34028.0

As always, remember to only work on COPIES of your wallet.dat Wink

d4n13
Full Member
***
Offline Offline

Activity: 210
Merit: 101


“Create Your Decentralized Life”


View Profile
November 19, 2017, 08:04:43 AM
 #5

Does that old version of bitcoin-qt not have the "dumpwallet" or "dumpprivkey" console commands? You don't need to be synced to use those.

Failing that, if you're familiar with Python/Command line stuff, then I'd recommend "PyWallet", it definitely has a "dumpwallet" command that will extract everything from your wallet.dat. It does not require bitcoind to be synced... in fact, it doesn't require bitcoind/bitcoin-qt at all... just your wallet.dat file

Download here: https://github.com/jackjack-jj/pywallet
BitcoinTalk Thread here: https://bitcointalk.org/index.php?topic=34028.0
Yes, it does have dumpwallet and dumpprivkey, but I didn't think the console was available till the sync completed.  Least thats what I had in my notes... for some reason.

I'll look at getting a vintage copy of PyWallet since I'm sure the wallet format on my file is way older than it's expecting.

As always, remember to only work on COPIES of your wallet.dat Wink
Amen Brother... I have so many backups, it's a treat to try to find the real thing Wink

Spendulus
Legendary
*
Offline Offline

Activity: 2030
Merit: 1069



View Profile
November 20, 2017, 04:56:11 AM
 #6

Does that old version of bitcoin-qt not have the "dumpwallet" or "dumpprivkey" console commands? You don't need to be synced to use those.

Failing that, if you're familiar with Python/Command line stuff, then I'd recommend "PyWallet", it definitely has a "dumpwallet" command that will extract everything from your wallet.dat. It does not require bitcoind to be synced... in fact, it doesn't require bitcoind/bitcoin-qt at all... just your wallet.dat file

Download here: https://github.com/jackjack-jj/pywallet
BitcoinTalk Thread here: https://bitcointalk.org/index.php?topic=34028.0
Yes, it does have dumpwallet and dumpprivkey, but I didn't think the console was available till the sync completed.  Least thats what I had in my notes... for some reason.

I'll look at getting a vintage copy of PyWallet since I'm sure the wallet format on my file is way older than it's expecting.

As always, remember to only work on COPIES of your wallet.dat Wink
Amen Brother... I have so many backups, it's a treat to try to find the real thing Wink
Not sure about old versions of Core regarding dumping the keys before the sync is complete, but I am pretty sure this can be done on the current version.

Another option is to build on your computer another copy of Core, using a pruned database, then dumpprivatekeys. That would be pretty quick to load.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!