Bitcoin Forum
December 11, 2024, 02:57:56 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [29] 30 31 32 33 34 35 36 37 38 39 40 »
  Print  
Author Topic: Pywallet 2.2: manage your wallet [Update required]  (Read 208267 times)
caulfield
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
June 06, 2017, 09:23:16 PM
 #561

Can someone please give instructions how setup this program on my Win 7 x64, can't find all components with old instructions. Please?
parduc02
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
June 15, 2017, 03:39:31 PM
 #562

I used following command:

pywallet.py --recover --recov_device=F:\wallet.dat --recov_size=4Gio --recov_outputdir=D:\ --otherversion=48

The wallet file is on a thumb drive, formatted to Fat32, but it tells me that 0 wallets found. I even tried with a brand new wallet.dat. Still the same.

Any suggestions?
matsmyth
Member
**
Offline Offline

Activity: 62
Merit: 10


View Profile
June 16, 2017, 06:00:04 AM
 #563

Could anyone help? I did a photorec recovery of all .dat files from an old drive and put them on a flash drive. The pywallet recovery process gets this far but then just quits:

"Read 16.4 Go in 42.0 minutes

Found 21 possible wallets
Found 5850 possible encrypted keys
Found 843 possible unencrypted keys

Possible wallet #1
    with passphrase #1 "


It just quits there. It does produce a pywallet_partial_recovery_xxx.dat file, but I cannot dump it or load it with any litecoin client.

Any assistance would be very appreciated.

^bump
madmartyk
Legendary
*
Offline Offline

Activity: 2702
Merit: 1030


Yes I am a pirate, 300 years too late!


View Profile
June 16, 2017, 10:44:50 AM
 #564

Could anyone help? I did a photorec recovery of all .dat files from an old drive and put them on a flash drive. The pywallet recovery process gets this far but then just quits:

"Read 16.4 Go in 42.0 minutes

Found 21 possible wallets
Found 5850 possible encrypted keys
Found 843 possible unencrypted keys

Possible wallet #1
    with passphrase #1 "


It just quits there. It does produce a pywallet_partial_recovery_xxx.dat file, but I cannot dump it or load it with any litecoin client.

Any assistance would be very appreciated.

^bump

at the end of your command line use a >text.txt
this will dump the info to a text file.  You have to know what questions is asks because the screen doesn't echo.

ice2097
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 17, 2017, 03:15:54 PM
 #565

I'm trying to recover an old bitcoin wallet.dat from ~2011 or so. I tried loading it with the current bitcoin-qt, and just get a "wallet.dat corrupt, salvage failed" error.
I didn't think I had a passphrase on my wallet, but I'm not positive.

I'm trying to use pywallet to get something usable out of the file, but I'm having some trouble and would really appreciate any help anyone here can provide.

I have the wallet.dat file in the same directory as pywallet.py
If I try to dump the wallet, I get:

ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.

If I try to recover, I get:

$ ./pywallet.py --recover --recov_size 30.1Gio --recov_device ./wallet.dat --recov_outputdir ./rec2/
Enter the passphrase for the wallet that will contain all the recovered keys: q

Enter the possible passphrases used in your deleted wallets.
Don't forget that more passphrases = more time to test the possibilities.
Write one passphrase per line and end with an empty line.
Possible passphrase:

Starting recovery.

Read 0.0 Go in 0.0 minutes

Found 0 possible wallets
Found 0 possible encrypted keys
Found 141 possible unencrypted keys
Segmentation fault: 11


at which point python crashes....
I'm not really clear on if these 141 keys should be useful or not... also I have no idea what the recov_size variable means, so this could be incorrect.

I'm not really sure where to go from here... any suggestions would be highly appreciated!
matsmyth
Member
**
Offline Offline

Activity: 62
Merit: 10


View Profile
June 17, 2017, 07:34:06 PM
 #566

Could anyone help? I did a photorec recovery of all .dat files from an old drive and put them on a flash drive. The pywallet recovery process gets this far but then just quits:

"Read 16.4 Go in 42.0 minutes

Found 21 possible wallets
Found 5850 possible encrypted keys
Found 843 possible unencrypted keys

Possible wallet #1
    with passphrase #1 "


It just quits there. It does produce a pywallet_partial_recovery_xxx.dat file, but I cannot dump it or load it with any litecoin client.

Any assistance would be very appreciated.

^bump

at the end of your command line use a >text.txt
this will dump the info to a text file.  You have to know what questions is asks because the screen doesn't echo.


@madmartyk

unfortunately it only dumps the exact same thing. no new info...
madmartyk
Legendary
*
Offline Offline

Activity: 2702
Merit: 1030


Yes I am a pirate, 300 years too late!


View Profile
June 17, 2017, 07:51:18 PM
 #567

Have you tried to import the keys you have found?

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
June 18, 2017, 03:55:52 AM
 #568

I have the wallet.dat file in the same directory as pywallet.py
If I try to dump the wallet, I get:

ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.
By default... pywallet works on the default Bitcoin directory and wallet.dat file (Hence the error telling you to shut it down, it doesn't want to work on a "live" wallet).

You likely need to use the following commandline options to get it to point to the wallet.dat you want to work on:

Quote from: pywallet README
--dumpwallet          dump wallet in json format
...
--datadir=DATADIR     wallet directory (defaults to bitcoin default)
--wallet=WALLETFILE   wallet filename (defaults to wallet.dat)


Just as an FYI...
Quote
If I try to recover, I get:
$ ./pywallet.py --recover --recov_size 30.1Gio --recov_device ./wallet.dat --recov_outputdir ./rec2/
Recover is used when you're effectively scanning a drive to try and find accidentally deleted wallet files and/or keys... it probably isn't what you want to be using...

  • Read a device to find deleted keys (CLI only)
    • Assuming that:
      • The device you want to read is /dev/sda3
      • The size of /dev/sda3 is 30.1Gio
      • You want pywallet to write the new wallet containing the found keys in /home/jackjack/recovered_wallets
    • Run "sudo ./pywallet.py --recover --recov_device /dev/sda3 --recov_size 30.1Gio --recov_outputdir /home/jackjack/recovered_wallets"
    • Then replace your wallet (back it up before) with the recovered wallet and run "bitcoin -rescan"
--recov_device needs to be set to a disk (ie. harddrive or maybe usb). The --recov_size is used to specify the size of the device in Gigabytes...

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
ice2097
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 18, 2017, 09:16:38 AM
 #569

Thanks for the fast replies!

Have you tried to import the keys you have found?

No, sorry, I don't really understand the format of the output:

{'\x00\x01\x03key': [
(Here there is a list of 142 comma-separated 5- and 6-digit numbers, in ascending value) ], '\t\x00\x01\x04mkey': [], 'PRFdevice': './wallet.dat', 'PRFsize': 139264, 'PRFdt': 0.02301478385125293, "'\x00\x01\x04ckey": []}

Is there something I can do with the list of 5/6 digit numbers?



You likely need to use the following commandline options to get it to point to the wallet.dat you want to work on:

Sorry I should have been more clear, I'm running this on a computer that doesn't have any bitcoin software installed, just the wallet.dat file from my old computer, and pywallet.
For the wallet dump the command I ran was:

$ python pywallet.py --datadir=./ --wallet=wallet.dat --dumpwallet --dumpwithbalance > keys.txt
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.


I've tried changing the permissions of the wallet file with chmod, and running the command as sudo to make sure its not a permissions issue, but it still gives the same response...

Quote
Just as an FYI...
Recover is used when you're effectively scanning a drive to try and find accidentally deleted wallet files and/or keys... it probably isn't what you want to be using...
--recov_device needs to be set to a disk (ie. harddrive or maybe usb). The --recov_size is used to specify the size of the device in Gigabytes...

Ah good to know. Thanks for the clarification!
silverkamote
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
June 18, 2017, 12:54:32 PM
 #570

nice software i wana try it. thanks
matsmyth
Member
**
Offline Offline

Activity: 62
Merit: 10


View Profile
June 19, 2017, 10:46:51 PM
 #571

Have you tried to import the keys you have found?

I can't import because the program doesn't get that far. It literally crashes the moment after trying passphrase #1 on wallet #1, without any error message. So it never starts decrypting to create the wallet.dat. Only the partial, which only contains locations of the keys. I see another user, @Praxis, had the exact same problem earlier in this thread, and they were able to fix it, but he didn't mention how he got over that hump. And I haven't gotten a response yet via pm from him or jackjack.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
June 20, 2017, 01:30:37 AM
 #572

Sorry I should have been more clear, I'm running this on a computer that doesn't have any bitcoin software installed, just the wallet.dat file from my old computer, and pywallet.
For the wallet dump the command I ran was:

$ python pywallet.py --datadir=./ --wallet=wallet.dat --dumpwallet --dumpwithbalance > keys.txt
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.


I've tried changing the permissions of the wallet file with chmod, and running the command as sudo to make sure its not a permissions issue, but it still gives the same response...
Have you tried specifying the full path to the wallet file rather than just . ?? It's possible that the script is attempting to parse this as a full path and may not be locating the file correctly? I haven't looked at the actual code to see how the script is handling the --datadir argument, so I'm not 100% sure of the format required here.

When I get home from work tonight I'll have a proper look and and a bit of a play around with it and see if I can replicate and/or figure out some more specific solutions for you.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
ice2097
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 20, 2017, 05:42:14 PM
 #573

Have you tried specifying the full path to the wallet file rather than just . ?? It's possible that the script is attempting to parse this as a full path and may not be locating the file correctly? I haven't looked at the actual code to see how the script is handling the --datadir argument, so I'm not 100% sure of the format required here.

When I get home from work tonight I'll have a proper look and and a bit of a play around with it and see if I can replicate and/or figure out some more specific solutions for you.

Yeah, unfortunately I've tried the full path as well, and get the same response.
I don't think its an issue with the path, as if I put in an malformed path I get a different "bsddb.db.DBNoSuchFileError: (2, 'No such file or directory -- /Users/user/notpywallet/__db.001: No such file or directory')" error.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
June 23, 2017, 03:54:41 AM
 #574

Sorry for the delay... I suspect that either the wallet is badly corrupted or it is indeed encrypted and the password you are using is wrong, hence the script being unable to read it properly...

Especially in light of the message you're getting from current Bitcoin Core saying that it is corrupted.

I'm wondering if could be struggling with an old wallet format? What version of bitcoin-qt were you using originally with this wallet?

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
ice2097
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 26, 2017, 08:31:50 PM
 #575

Sorry for the delay... I suspect that either the wallet is badly corrupted or it is indeed encrypted and the password you are using is wrong, hence the script being unable to read it properly...

Especially in light of the message you're getting from current Bitcoin Core saying that it is corrupted.

I'm wondering if could be struggling with an old wallet format? What version of bitcoin-qt were you using originally with this wallet?

Yeah, I think it probably is a very old version... I think the wallet was started around 2011 or 2012, but I'm not positive.
tspacepilot
Legendary
*
Offline Offline

Activity: 1456
Merit: 1081


I may write code in exchange for bitcoins.


View Profile
June 26, 2017, 10:37:23 PM
 #576

ice2097, did you try this tool?  https://bitcointalk.org/index.php?topic=25091.0

It just loops through the file and tries to find concurrent sections which could be keys.  Might be useful since you said the file isn't parseable as a wallet anymore.
rijsje91
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
June 28, 2017, 07:20:06 PM
Last edit: June 28, 2017, 07:40:40 PM by rijsje91
 #577

Hello jackjack I've been redirected to the page to ask you for help. I have a problem i removed my wallet from cloakcoin and can not return it with pywallet Embarrassed. I have turned multiple scans but all I get is bitcoin keys and not my cloakcoin wallet. I have scanned with pywallet: pywallet.py --recover --recov_device c: --recov_size 240Gio --otherversion = 27 --recov_outputdir c: \ recu

The new wallet c:\recu/recovered_wallet_1498320264.dat contains the 300 recovere
d keys

-----------------------------------------------
This is with otherversion 28

Found 36 possible wallets
Found 13376 possible encrypted keys
Found 3196 possible unencrypted keys
Can't decrypt them as you didn't provide any passphrase.
Traceback (most recent call last):
File "pywallet.py", line 4875, in <module>
db_env = create_env(options.recov_outputdir)
File "pywallet.py", line 1269, in create_env
r = db_env.open(db_dir, (DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB
_INIT_TXN|DB_THREAD|DB_RECOVER))
bsddb.db.DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database
recovery -- c: No such file or directory')
-------------------------------------------------


I tried 27, 28 and 29 but without a result.
Can i search directly to a adress? I know the address I've deleted.


I hope you can help me.

Sincerely ,

Sven
gnode
Sr. Member
****
Offline Offline

Activity: 492
Merit: 250


View Profile
July 04, 2017, 03:09:09 PM
 #578

pywallet.py --dumpwallet --datadir g:\  --wallet=wallet.dat --recover --recov_device=g:\wallet.dat --recov_size=40Gio --recov_outputdir=c:\recover

This is what I used, if you want a file with the keys (what I did) add a >> dump.text at the end.  You will see nothing on the screen but you have to enter newpassphrase, oldpassphrase, enter
It will scan the drive (make sure the ##Gio is bigger than the drive) and dump any keys it finds to the text file.  You can then take the private keys and import them into a new wallet.

I did this on a corrupt wallet, it says I have 14,000 possible unencrypted keys. The wallet won't dump because it is corrupted. How do I see the unencrypted keys. The text file doesn't show any keys.

Thanks,

Gnode
Osten
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
September 01, 2017, 01:55:36 PM
 #579

Hi, I just found an old wallet from August 2011. I've tried using this tool to recover it and it creates the following files:

_db.001 24k
_db.002 64k
_db.003 264k
_db.004 96k
_db.005 512k
_db.006 48k
wallet.txt 0k

I couldn't find any information as to why it comes out as empty nor did I find any fix to this problem. I also tried using Bitcoin Core to recover it but it didn't work, and also tried bitcoin-qt 0.7.0 but it didn't work either. These are both newer than my wallet but I couldn't find any older clients anywhere.

Does this mean it's completely corrupt? Thankful for any help trying to recover this as I haven't found anyone else with this particular problem.
morbius55
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
September 01, 2017, 02:05:26 PM
 #580

Hi, I just found an old wallet from August 2011. I've tried using this tool to recover it and it creates the following files:

_db.001 24k
_db.002 64k
_db.003 264k
_db.004 96k
_db.005 512k
_db.006 48k
wallet.txt 0k

I couldn't find any information as to why it comes out as empty nor did I find any fix to this problem. I also tried using Bitcoin Core to recover it but it didn't work, and also tried bitcoin-qt 0.7.0 but it didn't work either. These are both newer than my wallet but I couldn't find any older clients anywhere.

Does this mean it's completely corrupt? Thankful for any help trying to recover this as I haven't found anyone else with this particular problem.
How did you install this for windows 10 if you don't mind me asking?, Thanks. I really really need to run it on a corrupt wallet.dat that I have.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [29] 30 31 32 33 34 35 36 37 38 39 40 »
  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!