Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: CryptoMamma on December 21, 2017, 11:48:13 PM



Title: --DUMPWALLET - TXT File Empty
Post by: CryptoMamma on December 21, 2017, 11:48:13 PM
Hi,

I'm trying to recover my password and need to extract the encrypted hash. I'm using python 27 on Win10. Installation is working fine, all systems are go. Except the TXT file I create to dump the data always comes up empty.  Can someone explain WHY it's always coming up empty? This is the command I'm using to run the script:

C:\Python27\pythonw pywallet.py --dumpwallet > myhash.txt


FYI: When I try this command below, I get 'FILE NOT FOUND'

C:\Python27\python pywallet.py --dumpwallet > myhash.txt

Would be so very grateful if anyone can help me understand what I might be doing wrong.





Title: Re: --DUMPWALLET - TXT File Empty
Post by: CryptoMamma on December 24, 2017, 09:14:45 AM
ANYBODY?? Can someone help me here??


Title: Re: --DUMPWALLET - TXT File Empty
Post by: bob123 on December 24, 2017, 01:41:53 PM
Is 'File not found' the only output? Or additionally something like No such file or directory - C:\\Users\\USERNAME\\AppData\Roaming\Bitcoin ?
Did you install bitcoin core in the standard path? If not you have to add this parameter: --datadir=YOUR_PATH

In this case your command would look like this:
Code:
pywallet.py --datadir=<path to directory> --dumpwallet > myhash.txt

You can also dump your wallet from core itself:
Code:
dumpwallet "filename"


Edit: Just found out that its not possible to dump encrypted wallets using pywallet without the --passphrase=PASSPHRASE command.
But you could try btcrecover (https://github.com/gurnec/btcrecover (https://github.com/gurnec/btcrecover)) to crack the password of your wallet.dat
Please note that cracking a 10+ character password without knowing what it could be, is pretty desperate.