Bitcoin Forum
May 03, 2024, 02:22:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to extract a large number of private keys from Pywallet txt file dump  (Read 105 times)
HedAix (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 12


View Profile
November 11, 2021, 12:31:35 PM
 #1

Applying pywallet's dumpwallet command to my 2013 wallet.dat file to produce a text file yields hundreds of addr, pubbkey, reserve and sec paragraphs. I tried to pick some of the "sec" listings (which i understand are the private keys) at random and sweep them into electrum but only get a "no inputs found" error message which I assume means that the private key is invalid or contains no bitcoin. is there a clever way to find the private keys that contain bitcoin or to extract all the private keys from the text file? Or have I got the whole sweep concept completely wrong? I've checked the "defaultkey" which i understand is the master public key to confirm that the wallet still contains some bitcoin so know that there is a (very modest) amount of value locked away in it. TIA! 
1714746145
Hero Member
*
Offline Offline

Posts: 1714746145

View Profile Personal Message (Offline)

Ignore
1714746145
Reply with quote  #2

1714746145
Report to moderator
1714746145
Hero Member
*
Offline Offline

Posts: 1714746145

View Profile Personal Message (Offline)

Ignore
1714746145
Reply with quote  #2

1714746145
Report to moderator
1714746145
Hero Member
*
Offline Offline

Posts: 1714746145

View Profile Personal Message (Offline)

Ignore
1714746145
Reply with quote  #2

1714746145
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714746145
Hero Member
*
Offline Offline

Posts: 1714746145

View Profile Personal Message (Offline)

Ignore
1714746145
Reply with quote  #2

1714746145
Report to moderator
TheArchaeologist
Sr. Member
****
Offline Offline

Activity: 310
Merit: 727


---------> 1231006505


View Profile WWW
November 11, 2021, 01:29:50 PM
 #2

I you have a list of addresses to share for which you want to check the balance, please post them here and I will check them (automated) for you.

Please note: not asking for the entire file, public addresses only.

Sooner or later you're going to realize, just as I did, that there's a difference between knowing the path and walking the path
HedAix (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 12


View Profile
November 11, 2021, 02:03:23 PM
 #3

I you have a list of addresses to share for which you want to check the balance, please post them here and I will check them (automated) for you.

Please note: not asking for the entire file, public addresses only.

Thanks for the offer. however extracting all the public keys represents the same problem for me. There are too many to manually extract and copy. I need a way of going through the text file and pulling out all the private keys so I can paste them en masse into the sweep field in Electrum. Any thoughts as to how I can do that?
TheArchaeologist
Sr. Member
****
Offline Offline

Activity: 310
Merit: 727


---------> 1231006505


View Profile WWW
November 11, 2021, 02:15:37 PM
 #4

Thanks for the offer. however extracting all the public keys represents the same problem for me. There are too many to manually extract and copy. I need a way of going through the text file and pulling out all the private keys so I can paste them en masse into the sweep field in Electrum. Any thoughts as to how I can do that?
Kind of depends if you can do any programming yourself or not. You could create a simple python script that will read the file line by line and extract the public key for those lines there is one present. Then in the end you could wite all found keys to a single file. I'm not aware of the structure of the file you got so my suggestions are kind of general. Anyway creating such a script shouldn't take much time.

Sooner or later you're going to realize, just as I did, that there's a difference between knowing the path and walking the path
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1367


View Profile
November 11, 2021, 02:24:04 PM
 #5

Check that answer (and others, topic is similar to yours):
https://bitcoin.stackexchange.com/a/41319
HedAix (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 12


View Profile
November 11, 2021, 04:13:40 PM
 #6

Unfortunately I am not a programmer, TheArchaeologist, so creating a script is beyond my ability. I was hoping there was an automated way someone had already created but it seems not.

Thanks for the link, PawGo. I did read that thread when i did my original research but it didn't have an obvious solution (most answers had downvotes) and, besides, the issue the OP had in that thread was a little different to mine (my issue is being able to mine the txt file to copy all private keys, his was about how to get the text file in the first place for multiple wallets).



LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16587


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
November 11, 2021, 05:18:17 PM
Merited by NeuroticFish (2), ABCbits (1)
 #7

Unfortunately I am not a programmer, TheArchaeologist, so creating a script is beyond my ability. I was hoping there was an automated way someone had already created but it seems not.
If it's only "hundreds", it shouldn't take too long to do it manually. I would for sure prefer to spend 30 minutes copying keys over trusting a program some random person gives you.
Note that clipboard malware can steal your keys, so make sure your computer is clean (or better: offline).

HedAix (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 12


View Profile
November 11, 2021, 06:03:21 PM
Merited by HCP (5), o_e_l_e_o (4), LoyceV (2), ABCbits (1)
 #8

Actually I worked out a simple way to do it. I imported the txt file into Excel then ran some functions to search for the sec entries (using ISNUMBER for those that are interested) then sorted the entries to list the sec cells together before cleaning the data of non key text using find/replace. Copied the cleaned up keys into electrum and voila, the bitcoin-containing keys were registered.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!