here are the steps how to extract private keys from Bitcoin Core wallet (wallet.dat). These instructions also apply to other “core” clients like litecoin, dogecoin, dash and many more. All they look similar to:
- Make a copy of your wallet.dat file. Everything you do to this file you have to make backup to make sure you are not loosing your coins. Where to find wallet.dat file? If you have installed Bitcoin Core wallet in the default directory it should be at:
Windows
C:\Documents and Settings\YourUserName\Application data\Bitcoin (XP)
C:\Users\YourUserName\Appdata\Roaming\Bitcoin (Vista,7,8,10)
Mac
~/Library/Application Support/Bitcoin/
Linux/Unix
~/.bitcoin/
if not search for if with command:
find / -name wallet.dat -print 2>/dev/null - Please donwload and extract JohnTheRipper
- Put the copy of your wallet.dat file into the
JohnTheRipper-bleeding-jumbo\run\
directory, type:
open the COMMAND PROMPT and type:
cd {path to john the ripper}\JohnTheRipper-bleeding-jumbo\run
and then type:
bitcoin2john.py wallet_copy.dat
you should get something like this:$bitcoin$64$f0ef639cd01bb26805c190e0aeba006fbdd6b817e0b6634b0fb11944bc0f19eb$16$d2542bb38e0ee061$76753$2$00$2$00
This is the encrypted hash of your password and you should send it in the contact form instead of wallet.dat file. - if you have errors like:
File "
../run/bitcoin2john.py”, line 639, in parse_wallet d.update(parse_BlockLocator(vds))TypeError: ‘NoneType’ object is not iterable In the hashes file, it like that:ERROR parsing wallet.dat, type bestblockkey data: bestblockkey data in hex: … - you need to fix your copy of wallet.dat file. In order to do that download Bitcointools (bitcointools-master) and extract it. Put copy of the wallet.dat file into the extracted directory and run this command:
fixwallet.py --datadir=C:\Users\YourUserName\Appdata\Roaming\Bitcoin --nosettings --noaccounts --notxes --noaddresses --out=another_copy_of_wallet.dat
Replace –datadir section with you path to bitcoin core. Use this new copy of your wallet file only to extract the encrypted hash. Go back with this file to the step 2.
If you have any problems please contact us.