bitcoin2hashcat error
#1
Hi,

Just installed a bitcoin client, create a wallet, and tried to run bitcoin2hashcat(/john).py :

Code:
python bitcoin2hashcat.py  default_wallet.dat
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.

Why? Bitcoin is not running.
Thanks.
#2
Could be anything. The file may be damaged or maybe a slightly different format is used in newer versions of bitcoind.
#3
I tried 4 different desktop bictoin clients.
So I guess the format is different!
#4
four different clients? This is only for the bitcoin core wallet.
#5
Ok Smile I tested with other clients.

With the latest BitcoinCore, I have another error:


Code:
python bitcoin2hashcat.py walC.dat

Traceback (most recent call last):
  File "bitcoin2hashcat.py", line 638, in parse_wallet
    d.update(parse_BlockLocator(vds))
TypeError: 'NoneType' object is not iterable
ERROR parsing wallet.dat, type bestblockkey data:       bestblockkey data in hex: 0962657374626c6f636bvalue data in hex: 6471020000


Works ok with bitcoin2john:
Code:
python bitcoin2john.py walC.dat

WARNING: walC.dat has previously unseen minversion '159900'!
$bitcoin$64$91a5e9203a91f02e2e3c967e2e3xxxxxxxxxx
#6
From what I can tell bitcoin2john.py should be compatible with hashcat. Can you try and confirm?
#7
Tested, it works OK.
#8
(07-22-2018, 10:05 PM)undeath Wrote: From what I can tell bitcoin2john.py should be compatible with hashcat. Can you try and confirm?
 Hi! I have a similar problem! I extracted the hash from bitcoin core wallet.dat. The result was 272 characters. But in the example to bitcoin wallet 304 characters. And Hashcat don't working, wrote that no hash. Can you help me?