Pages:
Author

Topic: pywallet install help - page 2. (Read 4152 times)

HCP
legendary
Activity: 2086
Merit: 4361
April 05, 2021, 03:15:38 PM
#96
https://imgur.com/0Iefhxy This is what i get when dumping one of the recovered wallets. Some of the numbers and characters of the key have been altered.
Is from one of the "recovered" wallets using the PyWallet "recover" functionality? Huh

In any case, that wallet file is essentially an empty wallet with no private keys (empty as in it doesn't have any keys, not empty as in "zero balance")... the "mkey" record that you can see, is the "random" master key used to encrypt the wallet data.

This master key is generated at random and encrypted using the chosen wallet passphrase. Usually, when you "unlock" your wallet, what you're actually doing is unlocking this master key and then that is used to decrypt your actual private keys.

Unfortunately, you can see that the "keys" array is actually empty... meaning that PyWallet has not been able to find any private key data in your wallet.dat


It would seem that PyWallet has not actually been able to locate any private key data during the scan/recovery... and has simply created an empty wallet.dat, encrypted with your chosen passphrase (hence the "mkey" record) Undecided
HCP
legendary
Activity: 2086
Merit: 4361
April 04, 2021, 06:15:59 PM
#95
That's okay. I will just do the recoveries and then dump the wallets as per your excellent help. Hope everything Is okay with you now, after your adventure. Now, do you know anything about weird word docx labelled Bitcoin addresses? lol. Take care.
That would depend on what you mean by "weird word docx"? Is it just a collection of private keys or something? Huh
HCP
legendary
Activity: 2086
Merit: 4361
April 01, 2021, 07:15:26 PM
#94
sorry for the delay in getting back to you... I had an unexpected hospital adventure Tongue

the command for Pywallet to scan a USB stick in G: would be:
Code:
python pywallet.py --recover --recov_device=G: --recov_size=XXGio

"XXGio" should be set to the size of G: thumbstick in gigabytes... ie. 8Gio

Note that it won't really "dump" the output to the screen only (ie. you're not going to see any addresses or private keys)... the --recover option scans the selected device looking for "wallet" data and attempts to create a "recovered wallet.dat" file from what it can find... you can then try and use Pywallet's --dumpwallet feature to try and dump the contents of the "recovered wallet.dat" to the screen.

But it's not possible to simply scan a device and directly output addresses/keys using PyWallet
full member
Activity: 217
Merit: 109
March 19, 2021, 05:15:07 PM
#93
Sorry to ask, but what would be the correct command for using pywallet to scan a usb stick in G: and dump the output to screen only, assuming I had the correct passphrase. Thanks again. That's based on my messy directory setup.
HCP
legendary
Activity: 2086
Merit: 4361
March 18, 2021, 06:17:37 AM
#92
Yes... the addresses should probably still be visible when the wallet is locked... the only data that is actually encrypted in a wallet.dat is the private keys. Pretty much everything else is unencrypted, hence why you can open Bitcoin Core and load a password protected wallet file and see the contents without knowing what the passphrase is.

The only time you need the passphrase is when you need to execute actions that require private keys (signing message, signing transaction, dumping wallet or private keys etc)
full member
Activity: 217
Merit: 109
March 16, 2021, 02:15:02 PM
#91
Not had any luck so far, still working through them. I did used some recovery software on the hard drive and found 2 copies of bitcoin QT version 8.5 each being about 21 meg in size. I opened one and it is locked but i don't know how to unlock it. It only gives me the option to change the passphrase and remains locked. Should the addresses be visible when it is locked and am i wasting my time? Cheers
HCP
legendary
Activity: 2086
Merit: 4361
March 02, 2021, 06:00:52 PM
#90
Those are simply a list of labels/names etc that PyWallet has stored in the wallet file for those particular addresses so that you know they were "recovered"... and are not newly generated etc. I think the original idea was that you could just use the whole recovered wallet.dat with Bitcoin Core and continue using it as "normal" and Bitcoin Core would be able to generate new keys and add them into the wallet file etc.

However, with the advent of HD wallets, that is probably not recommended.
full member
Activity: 217
Merit: 109
March 02, 2021, 05:55:04 PM
#89
Excellent... seems like we are getting somewhere. If you find addresses with coins, you will need to use the --passphrase option to generate the same output, but with the private keys listed... the command would be:

Code:
C:\Python27\python.exe C:\Users\Catherine\Downloads\pywallet.py --dumpwallet --datadir=C:\Users\Catherine\Downloads\pywallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat --passphrase=YOUR_PASSPHRASE_HERE > C:\Users\Catherine\Downloads\pywallet_output_with_privatekeys.txt

And change the YOUR_PASSPHRASE_HERE part as appropriate... this time the file created will be called: C:\Users\Catherine\Downloads\pywallet_output_with_privatekeys.txt

And the format should look the same, but you should see a field called "sec"... this will be the private key in "WIF" format (it will start with a "5", "K" or "L")... that can be used to import the private key(s) into another wallet.
Just one thing before i call it a night (hard day at work) at the bottom after all the sets of addresses, encrypted private keys etc there is extra stuff like 64 character strings with the heading recovered. Is that normal? Thanks.
HCP
legendary
Activity: 2086
Merit: 4361
March 02, 2021, 05:49:29 PM
#88
Excellent... seems like we are getting somewhere. If you find addresses with coins, you will need to use the --passphrase option to generate the same output, but with the private keys listed... the command would be:

Code:
C:\Python27\python.exe C:\Users\Catherine\Downloads\pywallet.py --dumpwallet --datadir=C:\Users\Catherine\Downloads\pywallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat --passphrase=YOUR_PASSPHRASE_HERE > C:\Users\Catherine\Downloads\pywallet_output_with_privatekeys.txt

And change the YOUR_PASSPHRASE_HERE part as appropriate... this time the file created will be called: C:\Users\Catherine\Downloads\pywallet_output_with_privatekeys.txt

And the format should look the same, but you should see a field called "sec"... this will be the private key in "WIF" format (it will start with a "5", "K" or "L")... that can be used to import the private key(s) into another wallet.
full member
Activity: 217
Merit: 109
March 02, 2021, 05:35:58 PM
#87
Ok... try this:
Code:
C:\Python27\python.exe C:\Users\Catherine\Downloads\pywallet.py --dumpwallet --datadir=C:\Users\Catherine\Downloads\pywallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat > C:\Users\Catherine\Downloads\pywallet_output.txt

That will dump all the output from the script into a file: C:\Users\Catherine\Downloads\pywallet_output.txt

You'll be able to open that with a text editor. It'll make it easier to view/read and search. At the very top of the file, does it say "The wallet is encrypted but no passphrase is used"? Huh You should also see some records below it that have names like: "addr", "compressed", "encrypted_privkey", "pubkey" etc


You're brilliant! I did what you said and looked in the pywallet folder, nothing. Then i looked in downloads and it was there on it's own and not within pywallet, weird Huh Anyway i will have to go through all the addresses and check them on blockchain explorer and i have multiple wallet dat recoveries to check (different scans of hard drive with other passphrases he suggested to me) plus the partial recoveries to try. I will let you know if i have any luck and will be true to my word if by any chance i find some coins. Smiley Smiley
HCP
legendary
Activity: 2086
Merit: 4361
March 02, 2021, 05:11:47 PM
#86
Ok... try this:
Code:
C:\Python27\python.exe C:\Users\Catherine\Downloads\pywallet.py --dumpwallet --datadir=C:\Users\Catherine\Downloads\pywallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat > C:\Users\Catherine\Downloads\pywallet_output.txt

That will dump all the output from the script into a file: C:\Users\Catherine\Downloads\pywallet_output.txt

You'll be able to open that with a text editor. It'll make it easier to view/read and search. At the very top of the file, does it say "The wallet is encrypted but no passphrase is used"? Huh You should also see some records below it that have names like: "addr", "compressed", "encrypted_privkey", "pubkey" etc

full member
Activity: 217
Merit: 109
March 02, 2021, 04:53:42 PM
#85
Awesome... that helps a lot...

Try this:
Code:
C:\Python27\python.exe C:\Users\Catherine\Downloads\pywallet.py --dumpwallet --datadir=C:\Users\Catherine\Downloads\pywallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat

See if that does anything... if you still get the "ERROR:root:Couldn't open wallet.dat/main" error, then it would appear that either the wallet filename is wrong... or the recovered wallet.dat is corrupted. You could try one of the other recovered wallet.dat's... just chance the filename as appropriate... although the fact they say "partial_recovery" in the name is not encouraging Undecided

So i tried it and got a similar error to last time. I then unticked read only in the pywallet folder and something actually worked Smiley The thing is it's not set out neatly with the rows named as to what they are. It consists of (on the left side) lines of numbers and letters 42 long and below that line is a string of numbers and letters 34 long all starting with 1. These alternate like that all the way down the page. Over on the right corresponding to the lines starting with 1 it says recovered and a string of numbers and letters mainly 23 long and some 22 long. Huh
HCP
legendary
Activity: 2086
Merit: 4361
March 02, 2021, 04:06:54 PM
#84
Awesome... that helps a lot...

Try this:
Code:
C:\Python27\python.exe C:\Users\Catherine\Downloads\pywallet.py --dumpwallet --datadir=C:\Users\Catherine\Downloads\pywallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat

See if that does anything... if you still get the "ERROR:root:Couldn't open wallet.dat/main" error, then it would appear that either the wallet filename is wrong... or the recovered wallet.dat is corrupted. You could try one of the other recovered wallet.dat's... just chance the filename as appropriate... although the fact they say "partial_recovery" in the name is not encouraging Undecided
full member
Activity: 217
Merit: 109
March 02, 2021, 01:22:44 PM
#83
just ignore the __db.001 files... they aren't really import in the grand scheme of things... but given they are in your "Downloads" folder... as well as in the "Pywallet" folder, suggests that you might not be in the correct location when attempting to run the scripts...

Just so we're on the same page, and can create the correct commands, can you please list the:

1. The full path (C:\blah\blah\foo\downloads\pywallet etc) of where the pywallet.py file is
2. The full path of where the recovered wallet.dat's are
3. The full names of the recovered wallet.dat files.

C:\Users\Catherine\Downloads\pywallet.py
             C:\Users\Catherine\Downloads\pywallet This contains individual wallet files eg recovered_wallet_1511377727.dat plus others the same with different numbers. These are from different recoveries but in the same format including pywallet_partial_recovery_1512502528.dat for instance. This is a folder i created to receive the found results, it also has the db files i mentioned. In properties it is ticked as read only, if that makes a difference?
HCP
legendary
Activity: 2086
Merit: 4361
March 01, 2021, 07:07:56 PM
#82
just ignore the __db.001 files... they aren't really import in the grand scheme of things... but given they are in your "Downloads" folder... as well as in the "Pywallet" folder, suggests that you might not be in the correct location when attempting to run the scripts...

Just so we're on the same page, and can create the correct commands, can you please list the:

1. The full path (C:\blah\blah\foo\downloads\pywallet etc) of where the pywallet.py file is
2. The full path of where the recovered wallet.dat's are
3. The full names of the recovered wallet.dat files.
full member
Activity: 217
Merit: 109
March 01, 2021, 05:11:43 PM
#81
I now get ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.
In which case it sounds like the path to the wallet file might be incorrect... where exactly are the recovered_wallet.dat files located? and what are their exact names? Huh
For some reason i have db.001 to db.006 showing as separate files when i go to downloads. But i also have a folder i created in downloads that i named pywallet. The pywallet folder contains those same db files and also the recovered wallet.dats. Don't know why they are duplicated separately. Could that be messing up the path? Each db file is the same size as the ones in the pywallet folder.The name of the wallet file is the same as you wrote and is within the pywallet folder along with others i recovered.
HCP
legendary
Activity: 2086
Merit: 4361
March 01, 2021, 04:44:55 PM
#80
I now get ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.
In which case it sounds like the path to the wallet file might be incorrect... where exactly are the recovered_wallet.dat files located? and what are their exact names? Huh
full member
Activity: 217
Merit: 109
March 01, 2021, 01:39:35 PM
#79
                         bsddb.db.DBNoSuchFileError: <2, 'No such file or directory -- C:\\Users\\Catherine\\Appdata\\Roaming\\Bitcoin\\__db.001: No such file or directory'>
As mentioned earlier... use the command that has the --datadir=. option in it if you get "no such file or directory __db.001"

Code:
C:\Python27\python.exe pywallet.py --dumpwallet --datadir=. --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat
I now get ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.
full member
Activity: 217
Merit: 109
February 28, 2021, 06:35:19 PM
#78
                         bsddb.db.DBNoSuchFileError: <2, 'No such file or directory -- C:\\Users\\Catherine\\Appdata\\Roaming\\Bitcoin\\__db.001: No such file or directory'>
As mentioned earlier... use the command that has the --datadir=. option in it if you get "no such file or directory __db.001"

Code:
C:\Python27\python.exe pywallet.py --dumpwallet --datadir=. --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat
Thanks again, will try when I get in from work tomorrow.
HCP
legendary
Activity: 2086
Merit: 4361
February 28, 2021, 06:23:32 PM
#77
                         bsddb.db.DBNoSuchFileError: <2, 'No such file or directory -- C:\\Users\\Catherine\\Appdata\\Roaming\\Bitcoin\\__db.001: No such file or directory'>
As mentioned earlier... use the command that has the --datadir=. option in it if you get "no such file or directory __db.001"

Code:
C:\Python27\python.exe pywallet.py --dumpwallet --datadir=. --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat
Pages:
Jump to: