Post
Topic
Board Development & Technical Discussion
Re: Pywallet 2.2: manage your wallet [Update required]
by
strig1
on 16/05/2021, 18:49:24 UTC
Hello I used Recuva on an old HDD from 2013/2014 and found a wallet.dat file. Recuva said the wallet.dat file was in excellent condition. I tried using 2 versions of Bitcoin Core (0.21.1 and 0.8.6) to read the wallet.dat and was given the warning "wallet.dat corrupt, salvage failed". I installed Python 2.7.11, Pywallet, and all its dependencies and tried the following commands.


Pywallet DumpWallet Attempt:
Code:
python pywallet.py --dumpwallet --datadir=./ --wallet=wallet.dat

'ecdsa' package is not installed, pywallet won't be able to sign/verify messages
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again. (Bitcore was not open)

Pywallet Recovery Attempt:
I reformatted a flash drive in FAT32 and put the wallet.dat file in it and attempted the following recovery code
Code:
python pywallet.py --recover --recov_device=E:\wallet.dat  --recov_size=14.5Gio --recov_outputdir=.

Found 0 possible wallets
Found 0 possible encrypted keys
Found 0 possible unencrypted keys
WindowsError: exception: access violation reading 0x000000005FF07E98

The wallet.dat file is 328KB. I inspected it using a HexEditor and Notepad++ and it doesn't look corrupted. When I search notepad++ for 'key', there is 1 match, but when I search for 'name' there are no matches. My next step is to recover the HDD using GetDataBack instead of Recuva, and then reattempt what I have done so far. I would appreciate any help!