Post
Topic
Board Development & Technical Discussion
Re: Pywallet: manage your wallet
by
jackjack
on 18/08/2011, 03:36:50 UTC
New command-line option: Recover your deleted keys
Code:
sudo ./pywallet.py --recover --recov_size 30.1Gio --recov_device /dev/sda3 --recov_outputdir /home/jackjack/recovered_wallets
This will read the 30.1 first Gio of /dev/sda3 to find some deleted private keys (sudo can be needed to read devices)

recov_size accepts ko, kio, Mo, Mio, Go, Gio, To and Tio units (edit: I just think about that, some of you may usually use kB/MB/..., I'll fix that, later Wink ). No space allowed between the number and the unit
recov_device is obviously the device to read
recov_outputdir is the directory where pywallet will write the recovered wallet (named "recovered_wallet_TIMESTAMP.dat")

It's only a command-line option because if one deletes his wallet and tries to recover it, running a browser is not exactly is good idea...

It takes about 25 minutes to read 100 Go

Code:
File:   pywallet.py v1.1-27
Sig:    304402202553256cbeb2020f9f3b4a970bd34f2fa0588311525acf95c4eb56725c1c08730220374dd3658f8da7d2ec2f25a8216a561766f0f471304a7988bd300e8333bc9c50
Pubkey: 04307867a30e7b8673b92f9c62c664dbd821a3be44e8d41fc65261296f4d6e71fa430a0d7f54e3aca296357900fe096c2bc7333d60e57ffe73bc2f49b581c17750



I tried running it with Python 2.4.  It kinda works.  The biggest issue I ran into, the json module does not appear to exist in Python 2.4.  According to the docs on python.org, json would appear to have been introduced in 2.6.
I'll see if I can use something else instead of json, thanks for the feedback