Bitcoin Forum
November 23, 2017, 04:31:42 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 [28] 29 30 »
  Print  
Author Topic: Pywallet 2.2: manage your wallet [Update required]  (Read 182003 times)
shorena
Legendary
*
Offline Offline

Activity: 1400


ALL escrow is signed! https://keybase.io/verify


View Profile WWW
March 17, 2017, 06:49:11 PM
 #541

Can't you just dump the private key from the QT wallet?
Too many public keys...  each requires the dumpprivkey entry. 

Would rather script it using this tool across my many wallet.dat files.

You can dump all priv keys from a wallet.dat using

Code:
dumpwallet "filename"

Dumps all wallet keys in a human-readable format.

Arguments:
1. "filename"    (string, required) The filename

Examples:
> bitcoin-cli dumpwallet "test"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/

Join ICO Now Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511411502
Hero Member
*
Offline Offline

Posts: 1511411502

View Profile Personal Message (Offline)

Ignore
1511411502
Reply with quote  #2

1511411502
Report to moderator
1511411502
Hero Member
*
Offline Offline

Posts: 1511411502

View Profile Personal Message (Offline)

Ignore
1511411502
Reply with quote  #2

1511411502
Report to moderator
jackjack
Legendary
*
Offline Offline

Activity: 1120


May Bitcoin be touched by his Noodly Appendage


View Profile
March 21, 2017, 11:48:36 AM
 #542

Hello JackJack.

I have some old wallet.dat files from early 2014 I am trying to get the PrivateKeys from - and only the private keys.  They are from Bitcoin-QT (Windows version).

All wallets have a passphrase.

I am now on OSX.

When I run pywallet.py, with the correct passphrase, I get a Segment Dump error - with no stacktrace.

Code:
$ ./pywallet.py --dumpwallet --datadir=data/ --wallet=wallet-9.dat
# moving wallet-9.dat to its own data9/wallet.dat
$ ./pywallet.py --dumpwallet --datadir=data9/

Both of these give the segment fault and crashes.

Also tried the web interface, same error.

NOTE: I am disconnected from the Internet when running the pywallet.py script.


Here's the version I am on:

Code:
$ git remote -v
origin  git@github.com:jackjack-jj/pywallet.git (fetch)
origin  git@github.com:jackjack-jj/pywallet.git (push)
$ git log
commit b52c955f8c93a75745166ebf281448016e1f22e2
Merge: 069ef00 7c847c1
Author: jackjack-jj <jackjack-jj@users.noreply.github.com>
Date:   Mon Sep 8 20:59:58 2014 +0200

    Merge pull request #11 from gurnec/crypto-fixes

    Fix wallet creation bugs related to crypto

Using virtualenv for python2.7, I installed:

Not sure how to move forward from here.

I can open the wallet.dat files, all of them, with an old Bitcoin-QT wallet I have on a disconnected-from-the-net Windows Virtual Machine.  So, I know the wallet.dat files are valid.

Thanks!
Sadly I don't know OSX, I'll check where this error can come from
In the mean time you should try the method of shorena (the dumpwallet command)
By the way, how big is the wallet?

Hi..... HELP.
I have a corrupted, unrecoverable wallet.dat file.

I can't get any of this working.

Now at the
Instead do that:
It would be easier to install WinPython (choose 32 or 64bit depending on your computer: https://sourceforge.net/projects/winpython/files/WinPython_2.7/2.7.12.4/)
Go where you installed it
Launch "WinPython Command Prompt.exe"
Execute this: python -m pip install twisted ecdsa
Then: python C:\path\to\pywallet.py
Stage.

and I get this:

 File "pywallet.py", line 852
    _p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2FL
                                                                           ^

I doubt I can get my wallet back as its been overwritten, but undelete software can still locate the old file, but recovery of it leaves a corrupt file.

This seems my only slim chance but I have no idea what I am doing.
PLEASE HELP

Please provide the complete error message

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
edgar
Legendary
*
Offline Offline

Activity: 1540


View Profile
March 21, 2017, 02:44:18 PM
 #543

hi jack,

PM'd you yesterday but i imagine your inbox is overflowing with 'please help'

ive a ppc wallet i managed to partially recover with some help, but i never used a password/phrase so no idea why i have encrypted privkeys..

        },
        {
            "addr": "PUYxxxxxxxxxxxxxxxxxxxxxxxxxczt",
            "compressed": true,
            "encrypted_privkey": "64949033adc7ca15de0cefac43a196a21dd410adab8b91271c45dbf722e7d644e00165ca488d920 97ff4fe6cd2083972",
            "pubkey": "021b66d33c146e9ea7d390b581d934bd5699c113c36f355dc0e90ec27a408433e0",
            "reserve": 1
        },

can you please advise? ive spent ages trying to sort this


jackjack
Legendary
*
Offline Offline

Activity: 1120


May Bitcoin be touched by his Noodly Appendage


View Profile
March 21, 2017, 03:18:59 PM
 #544

Hi!
Yes, sorry for the overflowing inbox  Grin
What does partially recovered mean? What happened and where does the wallet you're dumping come from?

If it comes from the pywallet recovery feature then the password is what you wrote when pywallet asked you to choose a passphrase for the new wallet

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
edgar
Legendary
*
Offline Offline

Activity: 1540


View Profile
March 21, 2017, 04:00:53 PM
 #545

Hi!
Yes, sorry for the overflowing inbox  Grin
What does partially recovered mean? What happened and where does the wallet you're dumping come from?

If it comes from the pywallet recovery feature then the password is what you wrote when pywallet asked you to choose a passphrase for the new wallet

Hi!!

Thanks for your reply!!

at first i could get no information other than wallet address, with help i/we managed to get more addresses & ckeys, using otherversion 55 i managed to get encrypted privkeys & pubkeys.

but we're at a loss how to move fwd.

initially the wallet.dat was removed while the client was open, it has sat dormant since 2015

jackjack
Legendary
*
Offline Offline

Activity: 1120


May Bitcoin be touched by his Noodly Appendage


View Profile
March 21, 2017, 04:09:10 PM
 #546

Are you 100% sure you never used a passphrase?
That would be really strange

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
edgar
Legendary
*
Offline Offline

Activity: 1540


View Profile
March 21, 2017, 05:37:25 PM
 #547

during recovery it asked if i had one & to enter it, with no option to not enter.

i hit space and enter, then enter again.

the wallet is >2 yrs old and never had any password on it
jackjack
Legendary
*
Offline Offline

Activity: 1120


May Bitcoin be touched by his Noodly Appendage


View Profile
March 21, 2017, 05:50:24 PM
 #548

If you're talking about the pywallet recovery then the first prompt is for encrypting the recovered wallet
So if you only hit the space bar, you just have to add this:
Code:
--passphrase " "
at the end of the command line, with the correct number of spaces between the quotes

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
edgar
Legendary
*
Offline Offline

Activity: 1540


View Profile
March 21, 2017, 06:06:27 PM
 #549

lmao - i knew it was something simple we were overlooking!!

so now i have a hexsec, a sec and a secret in addition to the previous data.

i entered the sec as a privkey & after a minute or so it synced up all good!

Cheers!!

where can i send a small token of appreciation??
jackjack
Legendary
*
Offline Offline

Activity: 1120


May Bitcoin be touched by his Noodly Appendage


View Profile
March 22, 2017, 04:10:42 PM
 #550

lmao - i knew it was something simple we were overlooking!!

so now i have a hexsec, a sec and a secret in addition to the previous data.

i entered the sec as a privkey & after a minute or so it synced up all good!

Cheers!!

where can i send a small token of appreciation??

I'm glad you managed to recover them Smiley

If you want to send me a (much appreciated) tip, use this address: 19SrAwpUizbVxNLCS3iwnmktzm93LFNTkR

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
Aero4
Newbie
*
Offline Offline

Activity: 1


View Profile
March 22, 2017, 07:07:45 PM
 #551


Oh it's for an altcoin! The problem must be this.
Please create a dummy address in your client then export the coresponding private key through the console and post it here.
I highly advise you to delete the address afterwards.
Thanks to this I'll be able to know which leading byte your altcoin uses to export private keys.

PS: without quotation marks

As you indicated me I made a dumpprivkey created and removed for the occasion wallet and this is what it returns me:

WnPrHA434nWat8CL131TTsZ3w2GYXm15ConQfcMjpNg2zwiG2kJB

I have taken other privatekeys and let you know that all start with W

It does not look anything like the PrivateKey to recover remanded me, 52 characters instead of 64 characters.

Let me know if you can do something about it.
greetings

Great!

I changed pywallet a bit to make a script for you
I just added those lines (do a diff before running it if you want):
Code:
if len(sys.argv[1])==64:
print EncodeBase58Check(chr(201)+(sys.argv[1]).decode('hex')+'\x01')
else:
print 'bad private key length (%d)'%len(sys.argv[1])
exit()
The result is here: http://pastebin.com/raw.php?i=VYJkFfMc
Just save it to privkey.py then
Code:
python privkey.py 2a5b4c4e1d5f...(64 hexadecimal characters)

Hi!!

First of all, thank you to let me pass to this awesome bitcoin world. Although I know it since years I totally disconnected of it, and that is a big amount of time. I am totally outdated. So, I have a wallet.dat, I used the pywallet.py to extract the privkeys of the addresses I wanted, and now I want to do a transfer to another wallet (blockchain). So here comes the problem. Since blockchain seems to ask for a private key to manage the external adresses (otherwise they are watch-only mode), the privkeys I've got are hex. I'd like to convert them to base58. For that reason I quoted this message. Because I don't know where to put and how to run these few code lines  to obtain what I want Cry (I'm totally newbie in python).

Than k you very much for any help!
jackjack
Legendary
*
Offline Offline

Activity: 1120


May Bitcoin be touched by his Noodly Appendage


View Profile
March 23, 2017, 10:47:37 AM
 #552

Hi!!

First of all, thank you to let me pass to this awesome bitcoin world. Although I know it since years I totally disconnected of it, and that is a big amount of time. I am totally outdated. So, I have a wallet.dat, I used the pywallet.py to extract the privkeys of the addresses I wanted, and now I want to do a transfer to another wallet (blockchain). So here comes the problem. Since blockchain seems to ask for a private key to manage the external adresses (otherwise they are watch-only mode), the privkeys I've got are hex. I'd like to convert them to base58. For that reason I quoted this message. Because I don't know where to put and how to run these few code lines  to obtain what I want Cry (I'm totally newbie in python).

Than k you very much for any help!
Hi
You can use pywallet for this:

Quote
$ python pywallet.py --info --importhex --importprivkey 3213213213213213213213213213213132132132132132132132165465465421
Address (Bitcoin): 1CWJKVeNTW9wLeBmy2TMSL5nMDsQddNPm8
Privkey (Bitcoin): 5JCLfzm49PboBvoCvupj8qaJTUxWgxAtyCusc3UwBFfRaK1pFnf
Hexprivkey:   3213213213213213213213213213213132132132132132132132165465465421
Hash160:      7e33e750554b7219c5058b943adb67fd1cc715b7

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
edgar
Legendary
*
Offline Offline

Activity: 1540


View Profile
March 23, 2017, 07:00:26 PM
 #553

lmao - i knew it was something simple we were overlooking!!

so now i have a hexsec, a sec and a secret in addition to the previous data.

i entered the sec as a privkey & after a minute or so it synced up all good!

Cheers!!

where can i send a small token of appreciation??

I'm glad you managed to recover them Smiley

If you want to send me a (much appreciated) tip, use this address: 19SrAwpUizbVxNLCS3iwnmktzm93LFNTkR

e60121af83e8ac9df4abb0457a96091062815c406ba51e2aae95a482bb234bfb

w\thx!
Vorth
Full Member
***
Offline Offline

Activity: 210

Wolf Man !


View Profile
March 30, 2017, 07:31:15 PM
 #554

OK, I had a corrupt wallet.  Dumped it and it says 80 keys (seems a bit low), import the keys to a blank wallet and my solo mined coins are there but not my pool mined ones.  I had a second address setup for the pool mined coins.  When I try to add it back I get a "Not Yours".  Rescanning the bad HD, maybe the recover on the wallet was bad.  Any thoughts on why it wouldn't recover a 2nd address from the Private Keys?

1JJzYHEm4pfFWxJqvMGdf57rXfeFGYxFu1
Vorth
Full Member
***
Offline Offline

Activity: 210

Wolf Man !


View Profile
April 04, 2017, 05:34:26 AM
 #555

Another thing to note if you want to recover your unencrypted wallet. DO NOT USE THE HARD DRIVE that used to contain it. This usually means, don't even use the computer it's connected to. Otherwise, you might inadvertently overwrite any unencrypted private keys that you are trying to recover.

1JJzYHEm4pfFWxJqvMGdf57rXfeFGYxFu1
Vivace92
Member
**
Offline Offline

Activity: 112


View Profile
April 06, 2017, 08:56:17 AM
 #556

It's a great project, and I will continues to following the development of this project, making it easier for me to control the wallet. Thanks and success dev.
matsmyth
Member
**
Offline Offline

Activity: 62


View Profile
April 18, 2017, 07:15:33 AM
 #557

Could anyone help? I did a photorec recovery of all .dat files from an old drive and put them on a flash drive. The pywallet recovery process gets this far but then just quits:

"Read 16.4 Go in 42.0 minutes

Found 21 possible wallets
Found 5850 possible encrypted keys
Found 843 possible unencrypted keys

Possible wallet #1
    with passphrase #1 "


It just quits there. It does produce a pywallet_partial_recovery_xxx.dat file, but I cannot dump it or load it with any litecoin client.

Any assistance would be very appreciated.
iMaster
Member
**
Offline Offline

Activity: 84


View Profile
April 20, 2017, 07:00:07 PM
 #558

This new signature feature is pretty darn cool.  Looking forward to seeing the verification work.

One of these days, pywallet will become the new PGP!

DeepOnion it is SCAM
And fuck this coin Smiley
Lukrativehd@gmail.com
Newbie
*
Offline Offline

Activity: 4


View Profile
May 09, 2017, 09:31:05 AM
 #559

Jack Jack I sent you a message via PM was really hoping for you assistance I can pay before hand if you'd like, I have no issue with that I've seriously been ripping my hair out and stressing way too much with my issue and my potentially lost coins, if you could reply as soon as you could It was best greatly appreciated!
acester47
Newbie
*
Offline Offline

Activity: 2


View Profile
May 15, 2017, 07:02:53 PM
 #560

Hey guys, I screwed up and I'm trying to recover a wallet. I thought I'd give pywallet a try but I need a little assistance.

First, my situation. It's really stupid. I backed up the wrong wallet.dat file which is completely empty for some reason, it has 0 bitcoin on it. I figure the correct wallet file is located on my 500gb hdd, I THINK it's probably encrypted. If it is I know what the passphrase is. The tricky part is I formatted the drive and installed windows on it, but other than that it's not been used for any data storage or anything. I know my chances of recovery are probably low but I figure I may as well try.

The partition was probably an ext3 or ext4 parition with ubuntu installed.

I've installed pywallet on my windows 10 drive and it's working away right now, but I just wanted to clarify some things and explain what I've done.

I ran the following: pywallet.py --recover --recov_device E:/ --recov_size 500Gio --recov_outputdir C:\Users\username\desktop\pywallet

Next it asked me for 2 things, a passphrase and then another passphrase? This part I don't understand. I just put my passphrase in both times, then pressed enter and it's now working away.. it says ###.## go read now. Did I run the right command for what I need? Should I be doing this from a live usb instead, or does it matter?

If I lose the bitcoin it's not a huge deal but it would be awesome to get it back. Before this I tried a hex editor to search the raw disk but it found nothing, but I think it's because the wallet must be encrypted.
EDIT:

It looks like it finished it's first run through but I'm not sure how to proceed, here's what I got:
Code:
Read 500.1 Go in 147.0 minutes

Found 1 possible wallets
Found 318 possible encrypted keys
Found 136 possible unencrypted keys

Possible wallet #1
    with passphrase #1  Traceback (most recent call last):
  File "C:\Users\ace--\Desktop\pywallet\pywallet.py", line 4870, in <module>
    recoveredKeys=recov(device, passes, size, 10240, options.recov_outputdir)
  File "C:\Users\ace--\Desktop\pywallet\pywallet.py", line 1550, in recov
    res = crypter.SetKeyFromPassphrase(pp, mk.salt, mk.iterations, mk.method)
  File "C:\Users\ace--\Desktop\pywallet\pywallet.py", line 770, in SetKeyFromPassphrase
    len(vKeyData), nDerivIterations, ctypes.byref(self.chKey), ctypes.byref(self.chIV))
WindowsError: exception: access violation reading 0x00000000B6FF9B88


There is a new file created called pywallet_partial_recovery_1494881440.dat on my desktop, but that's the only new file. Any ideas? Does this mean it actually found the wallet?

Edit 2:


I've been messing around and tried it again, this time it seems to have output a recovered_wallet_1494984807.dat file. I put that into bitcoin-qt and I'm getting an error message now: "A fatal error occured. Bitcoin can no longer continue safely and will quit." Please help! Also here's some of the output I got, does this mean it worked?
Code:
Read 499.3 Go in 134.8 minutes

Found 1 possible wallets
Found 318 possible encrypted keys
Found 136 possible unencrypted keys

Possible wallet #1
    with passphrase #1  ...............................
    with passphrase #2
    with passphrase #3
    with passphrase #4
    with passphrase #5
    with passphrase #6
    with passphrase #7
    with passphrase #8
    with passphrase #9
    with passphrase #10

Private keys not decrypted: 1
Trying all the remaining possibilities (10) might take up to 0 minutes.
Do you want to test them? (y/n): y

Private keys not decrypted: 1
Try another password, check the size of your partition or seek help
The wallet is encrypted and the passphrase is correct

Edit 3: I have recovered my coins by some miracle. They were actually stored in an armory .wallet file which I used photorec to recover. I wish I could go back in time to call myself an idiot. lol
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 [28] 29 30 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!