Title: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: ltcdude on February 26, 2021, 01:30:35 PM I read through multiple threads here...couldn't find a solution so please bear with me stupid questions.
I have a small amount of BTC in this old wallet.dat file from a few years ago in my old laptop...I am NOT a tech guy, but I followed instructions posted in various threads here to download/run pywallet on this wallet.dat file. I ran this script: Code: pywallet.py --dumpwallet --datadir=. ...which returned: Code: WARNING:root:encrypted wallet, specify password to decrypt Obviously not with 'xxxxxxxx' but various numbers. What do I do now? I can't remember where I kept my "private key", if that's what is needed. Can someone please help? Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: morbius55 on February 26, 2021, 02:03:34 PM My amateur opinion is that the wallet is encrypted, so you need to add the passphrase for it in the script.
Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: BitMaxz on February 26, 2021, 02:38:34 PM Do you remember the password of your wallet before?
If you still remember the password use this command below. Code: pywallet.py --dumpwallet --datadir=. --passphrase=YourPassword If you don't remember the password of your old wallet you might need a BTCrecovery tool to recover your password. The guide can be found here https://github.com/gurnec/btcrecover/blob/master/TUTORIAL.md#btcrecover-tutorial Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: ltcdude on February 26, 2021, 02:57:24 PM I don't remember the password. What I *do* remember is trying to be smart back then and having a complicated passphrase, and then encoding THAT to make it "extra secure", and then, saving it in a hidden drive with TrueCrypt. I thought I was being very smart and secure, now I realized I'm really quite the opposite.
Is the BTCrecovery tool legit? I will go through the link. Thanks. Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: escobol on February 26, 2021, 03:20:41 PM Without pass it is almost impossible
Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: fxsniper on February 26, 2021, 03:54:21 PM if you can get all private key already example Code: The wallet is not encrypted using "sec": "5KNE1wGnB9PdTDWd8asN3RyLVBxN3NGs8Qjd8V4RVPQ9ByAh57R", this is WIF private key use this import to new wallet or "secret": "cc376a11e0db7e21bcd62d00d3d9a5ebac20b159f6e3dea39ad590549ee6496a" this is you private key Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: HCP on February 26, 2021, 09:52:15 PM I don't remember the password. What I *do* remember is trying to be smart back then and having a complicated passphrase, and then encoding THAT to make it "extra secure", and then, saving it in a hidden drive with TrueCrypt. I thought I was being very smart and secure, now I realized I'm really quite the opposite. Do you remember anything at all about the wallet passphrase? ??? - Approximate passphrase length - Character set used: lower, UPPER, numb3r5, symb@|s? etc - Likely format of the passphrase (ie. 10 letters + 4 numbers... or "1 uppercase, followed by 8 mixed letters/symbols, followed by 2 numbers" etc) If you don't, you may as well save yourself some time and stress and give up now... This tools rely on you having a fairly good starting point to be able to achieve results in a reasonable amount of time. Quote Is the BTCrecovery tool legit? I will go through the link. Thanks. Yes, it is. Although, the version linked above is a little outdated now... and isn't being actively maintained.You might want to look at this version: https://github.com/3rdIteration/btcrecover/ Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: EdouardDuval on August 23, 2022, 03:49:21 PM Hi everyone, Hope you doing well.
I'm stuck to the exact same point. "mkey": { "encrypted_key": "96 lengths encrypted key", "nDerivationIterations": 64425, "nDerivationMethod": 0, "nID": 1, "otherParams": "", "salt": "salt*** " }, "names": { "Myadress": "" }, How can i figure out the private keys from these information please? Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: BitMaxz on August 23, 2022, 10:50:43 PM How can i figure out the private keys from these information please? If you just use the script or command that the OP did then you both will receive the same result. Do you know exactly the password of your wallet.dat? then use the command that I posted above or this below Code: pywallet.py --dumpwallet --datadir=. --passphrase=YourPassword Or if you don't know the password then you need BTCrecover tool the guide can find here btcrecover Tutorial (https://github.com/gurnec/btcrecover/blob/master/TUTORIAL.md#btcrecover-tutorial) Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: nc50lc on August 24, 2022, 02:46:03 AM -snip- If you've provided the passphrase, the WIF private keys will be listed under the "keys" json array (usually above that master key array).How can i figure out the private keys from these information please? It contains "addr", "compressed", "encrypted_privkey" down to "secret", the one that you're looking for are the "sec" above secret, which is the WIF prvKey of the address above it. But if you see this line: Code: The wallet is encrypted but no passphrase is used Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: EdouardDuval on August 24, 2022, 08:04:10 AM How can i figure out the private keys from these information please? If you just use the script or command that the OP did then you both will receive the same result. Do you know exactly the password of your wallet.dat? then use the command that I posted above or this below Code: pywallet.py --dumpwallet --datadir=. --passphrase=YourPassword Or if you don't know the password then you need BTCrecover tool the guide can find here btcrecover Tutorial (https://github.com/gurnec/btcrecover/blob/master/TUTORIAL.md#btcrecover-tutorial) I tried this . But everytime, on all my computer it says : Segmentation fault I think I ve got the right password but I can make it work. thanks for all the answers , very appreciate. Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: EdouardDuval on August 24, 2022, 08:10:24 AM -snip- If you've provided the passphrase, the WIF private keys will be listed under the "keys" json array (usually above that master key array).How can i figure out the private keys from these information please? It contains "addr", "compressed", "encrypted_privkey" down to "secret", the one that you're looking for are the "sec" above secret, which is the WIF prvKey of the address above it. But if you see this line: Code: The wallet is encrypted but no passphrase is used Yep I understand it. But everytime I get to add the password it says : segmentation fault. How can i make it work? Thanks you for your time. Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: nc50lc on August 24, 2022, 10:03:29 AM -snip- From which version of pywallet was it?But everytime I get to add the password it says : segmentation fault. How can i make it work? Because in my tests, I haven't encountered a 'seg fault' error by using the master branch of: https://github.com/jackjack-jj/pywallet/tree/master (https://github.com/jackjack-jj/pywallet/tree/master) Tested in Python v2.7.17. Do not download from the releases tag, it's the old version from 2011. Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: EdouardDuval on August 24, 2022, 10:35:29 AM -snip- From which version of pywallet was it?But everytime I get to add the password it says : segmentation fault. How can i make it work? Because in my tests, I haven't encountered a 'seg fault' error by using the master branch of: https://github.com/jackjack-jj/pywallet/tree/master (https://github.com/jackjack-jj/pywallet/tree/master) Tested in Python v2.7.17. Do not download from the releases tag, it's the old version from 2011. THANKS YOU A LOT MAN ! It helps. Now i get the error ERROR parsing wallet.dat, type b'mkey' ... i don't know what to do . but i foudn this on github I found a lazier fix that won't cause errors: just don't parse the settings. Add a "continue" as the first line of the elif type == b"setting": block here: pywallet/pywallet.py Line 2271 in c88faf8 elif type == b"setting": I don't understand where i'm supposed to put the continue?? thanks you a lot for your time. Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: nc50lc on August 24, 2022, 12:28:30 PM Now i get the error You mean this specific comment: link (https://github.com/jackjack-jj/pywallet/issues/27#issuecomment-792038244)?ERROR parsing wallet.dat, type b'mkey' -snip- but i foudn this on github I found a lazier fix that won't cause errors: just don't parse the settings. If so, the OP's issue about type setting error isn't related to the type b'mkey' error that you're getting. You can try to open a new issue in that repository since I haven't found any duplicate and I can't reproduce it. Title: Re: Found my old Bitcoin wallet.dat. Already ran pywallet. What now? Post by: BitMaxz on August 24, 2022, 11:44:08 PM I tried this . But everytime, on all my computer it says : Segmentation fault I think I ve got the right password but I can make it work. thanks for all the answers , very appreciate. How about this command would you mind trying this one Code: python pywallet.py –dumpwallet -datadir="yourpath" > wallet.text --passphrase= PASSPHRASE The segmentation fault might be because of an incorrect Passphrase/Password would you mind to confirm if the password is correct by using the BTCrecover (https://github.com/gurnec/btcrecover) tool let see if the result will be the same? If the password you put is not correct then the error you get from pywallet is due to an incorrect passphrase/password. |