Post
Topic
Board Bitcoin Technical Support
Re: Treasure Hunt - Recover wallet.dat from JAN2010
by
furyo87
on 18/02/2021, 18:08:45 UTC
Hi,

Believe I managed to run pywallet.py successfully, on a laptop with a fresh install of MXLinux (first time user).

Code:
vaio@vaio:~/Downloads
$ python pywallet.py --version
pywallet.py 1.1
vaio@vaio:~/Downloads
$ python pywallet.py --tests
......
----------------------------------------------------------------------
Ran 6 tests in 2.306s

OK
vaio@vaio:~/Downloads
$ python pywallet.py --random_key
'ecdsa' package is not installed, pywallet won't be able to sign/verify messages
Network: Bitcoin
Compressed: False
P2PKH Address:       1NcXgMwcTpAXivZj2wR4SPEhLPmHdFiuHV
Privkey:             5JbWYDZeZs6ZeqftB57uzxrWtTL3DNfqkNsbfdY8AbYsDrFvFAN
Hexprivkey:          66af6e2a205239a2af627b09f5c9de6088042ecfc2a197ca64154e5129fa5b46
Hash160:             ed12cf3239768d1b5eeb47d4cc0d9625403a90f9
Pubkey:              043c33eaf594a9af0468792bf174cbb794545d258de72264062fc763f4f7f70a485b6ddff038539328e1b4152a984cc6d07a5c012e4ae2e7329d997be53d39e3a1

Network: Bitcoin
Compressed: True
P2PKH Address:       15wDZXfDaaCWyVfAXLY9wQX7DrWCUrkTeF
P2SH-P2WPKH Address: 3ESTc8djQyEu26kZ53t5zioyyWAe5xLjpD
P2WPKH Address:      bc1qxcshxj8gfamqcdwnlha36w5yacja8exa5tdr7x
Privkey:             KzfKNnT6p47Z81pcsTBWvqXYv7D2mceSATYL1WGNdMVefb587YPv
Hexprivkey:          66af6e2a205239a2af627b09f5c9de6088042ecfc2a197ca64154e5129fa5b46
pywallet.py:2887: UserWarning:     For compressed keys, the hexadecimal private key sometimes contains an extra '01' at the end
Hash160:             36217348e84f760c35d3fdfb1d3a84ee25d3e4dd
Pubkey:              033c33eaf594a9af0468792bf174cbb794545d258de72264062fc763f4f7f70a48
vaio@vaio:~/Downloads
$ python pywallet.py --whitepaper
Wrote the Bitcoin whitepaper to bitcoin_whitepaper_.pdf

I ran the 4 commands above with no problems - even managed to download BTC`s whitepaper, which, I understand from jackjack`s thread, is a recent feature.

However when trying to use the --recover command I get the following error:
Code:
vaio@vaio:~/Downloads
$ python pywallet.py --recover --recov_size=008.0Gio --recov_device \vaio\desktop --recov_outputdir \vaio\documents
Traceback (most recent call last):
  File "pywallet.py", line 3731, in <module>
    size = read_device_size(options.recov_size)
  File "pywallet.py", line 2000, in read_device_size
    n, prefix, bi = re.match(r'(\d+)(|k|M|G|T|P)(i?)[oB]?$', size).groups()
AttributeError: 'NoneType' object has no attribute 'groups'

I tried lot of syntax but am still am pretty sure I still failed it. Is this all I am failing with?

Cheers