Bitcoin Forum
May 05, 2024, 02:07:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: pywallet recovery found deleted encrypted keys, now what?  (Read 2324 times)
sparkybtc (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
April 30, 2016, 09:19:08 PM
 #1

I need some help figuring out what to do with pywallet recovery results.  For starters, it would be great to find out if the keys it found are bitcoins or not.

I got pywallet working on windows and used the command line recovery to get this from a formatted drive:

Code:
Found 7 possible wallets
Found 1375 possible encrypted keys
Found 0 possible unencrypted keys
Can't decrypt them as you didn't provide any passphrase.
The wallet is encrypted and the passphrase is correct

And these two files:
pywallet_partial_recovery_1461990397.dat   20KB (this file is always 1KB for drives with no results)
recovered_wallet_1461990399.dat  32KB  (results or not, these files are all the same size)

I get "error in dump page" when I try to dump recovered_wallet.dat using pywallet's web browser interface.
I get this with recovered_wallet_1461990399.dat:

Code:
"ckey": [], 
    "keys": [],
    "mkey": {
        "encrypted_key": "e618****47d7",
        "nDerivationIterations": 59639,
        "nDerivationMethod": 0,
        "nID": 1,
        "otherParams": "",
        "salt": "359c****8bb"
    },
    "names": {},
    "pool": [],
    "tx": [],
    "version": 32500

Trying to dump via the command line gives the same error for both:

Code:
C:\Windows\system32>\pywallet\pywallet.py --dumpwallet --datadir= C:\ --wallet=wallet.dat --passphrase= ********* > dump.txt
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.

Dumping keys via the web browser results in "error in dump page" for both wallet files.

Obviously, I ran pywallet without supplying possible passphrases.  I'm now running the same recovery again with a long list of all of my old passphrase iterations.  However, that will take several hours and might not successfully decrypt any of them.

I don't even know if the keys are bitcoins or some other altcoin. I did CPU mine BTC sometime around 2011 and then forgot all about them.  Also spent $2 for several thousand Dogecoins many years ago.

Did pywallet not output any keys into the DAT files because the keys are encrypted?  How can I find out what types of keys they are?  I just don't know what to do or what is going on at this point.
1714874831
Hero Member
*
Offline Offline

Posts: 1714874831

View Profile Personal Message (Offline)

Ignore
1714874831
Reply with quote  #2

1714874831
Report to moderator
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714874831
Hero Member
*
Offline Offline

Posts: 1714874831

View Profile Personal Message (Offline)

Ignore
1714874831
Reply with quote  #2

1714874831
Report to moderator
1714874831
Hero Member
*
Offline Offline

Posts: 1714874831

View Profile Personal Message (Offline)

Ignore
1714874831
Reply with quote  #2

1714874831
Report to moderator
sparkybtc (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
May 02, 2016, 02:42:29 AM
 #2

I have found resources that answer many of my questions.

First, pywallet doesn't gather any encrypted keys.  It can only gather keys if a correct passphrase is provided for a recovered wallet that is encrypted.  However, if keys and or wallets are unencrypted, then it does place them in the resulting wallet.dat file. If the wallets/keys are encrypted, pywallet's --recover command allows for an unlimited amount of possible passphrases to be manually entered to try.  This answers many of my questions such as "I get "error in dump page" when I try to dump recovered_wallet.dat using pywallet's web browser interface."  pywallet defaults to an error message if a wallet is dumped with no keys in it.

It seems that most of the documentation for the program was lost when [Suspicious link removed] was no longer maintained.

https://bitcointa.lk/threads/data-recovery-problem-recovering-many-wallet-dat-from-repartitioned-hard-drive.151558/ is a four page thread that explains many of its functions.  Especially things such as pywallet_partial_recovery_<timestamp>.dat that can be used after an initial scan so that you can avoid re-scanning and simply try different passphrases.  That file lists locations on a drive that are of interest and syntax is included in the above thread indicating how to use it.  

"How can I find out what types of keys they are?" seems to be answered in this thread: http://bitcoin.stackexchange.com/questions/19589/how-to-determine-what-type-of-coins-a-wallet-dat-contains.  Use --dumpwallet=<walletlocation> .  If it is encrypted, include --passphrase=<passphrase> in the command line string.

I am currently testing the results of my pywallet recovery and hope that the stackexchange thread is accurate.

jackjack, if you see this, your program is a godsend.  I'll be sending you a percentage of what I recover.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
November 11, 2016, 04:29:29 PM
 #3

Hi,
I just saw this thread
Did you manage to solve your problems?

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!