Bitcoin Forum
May 21, 2024, 11:11:39 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Extracting private keys from wallet.dats?  (Read 1260 times)
michaeladair (OP)
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


I'm a Web Developer: HTML, CSS, PHP, JS.


View Profile
April 08, 2015, 02:21:51 PM
 #1

Is there any way to extract wallet keys without having to turn off my wallet and change wallet.dats? I'm wondering this because here has to be an easier way if I'm stuck with a ton of wallet.dats, I'm wanting to code a bot to do this for me and put em all in a text file. Any ideas?

DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
April 08, 2015, 02:24:16 PM
 #2

pywallet?
dsattler
Legendary
*
Offline Offline

Activity: 924
Merit: 1000


View Profile
April 08, 2015, 02:29:38 PM
 #3

If you're using bitcoin-qt (bitcoin core) wallet, you can open Help/Debug and go to the console. Enter

Quote
dumpprivkey "bitcoinaddress"

to extract the private key. If you encrypted your wallet, you must enter the wallet passphrase with "walletpassphrase" first.

Bitcointalk member since 2013! Smiley
NeuroticFish
Legendary
*
Offline Offline

Activity: 3682
Merit: 6406


Looking for campaign manager? Contact icopress!


View Profile
April 08, 2015, 02:33:22 PM
 #4

Private key is shortly after a "keyA" ascii sequence in the file.
Some technical details are here: https://bitcointalk.org/index.php?topic=22697.0;topicseen
They should be useful, especially if you want to code the priv key searcher.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
michaeladair (OP)
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


I'm a Web Developer: HTML, CSS, PHP, JS.


View Profile
April 08, 2015, 05:52:08 PM
 #5

If you're using bitcoin-qt (bitcoin core) wallet, you can open Help/Debug and go to the console. Enter

Quote
dumpprivkey "bitcoinaddress"

to extract the private key. If you encrypted your wallet, you must enter the wallet passphrase with "walletpassphrase" first.

Can this be done in cmd using a language like autoit or something... With the wallet.dats on hand?

defcon23
Legendary
*
Offline Offline

Activity: 1120
Merit: 1002


View Profile
April 08, 2015, 06:17:40 PM
 #6

If you're using bitcoin-qt (bitcoin core) wallet, you can open Help/Debug and go to the console. Enter

Quote
dumpprivkey "bitcoinaddress"

to extract the private key. If you encrypted your wallet, you must enter the wallet passphrase with "walletpassphrase" first.

Can this be done in cmd using a language like autoit or something... With the wallet.dats on hand?
not just with the wallet.dat.
 To run this comand you have to run the client on your computer ( bitcoin core )
dsattler
Legendary
*
Offline Offline

Activity: 924
Merit: 1000


View Profile
April 08, 2015, 09:59:45 PM
 #7

If you're using bitcoin-qt (bitcoin core) wallet, you can open Help/Debug and go to the console. Enter

Quote
dumpprivkey "bitcoinaddress"

to extract the private key. If you encrypted your wallet, you must enter the wallet passphrase with "walletpassphrase" first.

Can this be done in cmd using a language like autoit or something... With the wallet.dats on hand?

Here is some info how to call the bitcoind API from various languages:

https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)

Bitcointalk member since 2013! Smiley
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
April 09, 2015, 07:37:26 AM
 #8

If you're using bitcoin-qt (bitcoin core) wallet, you can open Help/Debug and go to the console. Enter

Quote
dumpprivkey "bitcoinaddress"

to extract the private key. If you encrypted your wallet, you must enter the wallet passphrase with "walletpassphrase" first.

Can this be done in cmd using a language like autoit or something... With the wallet.dats on hand?

Here is some info how to call the bitcoind API from various languages:

https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)

This requires to change the wallet.dat files each time. OP could just use pywallet.

Im not really here, its just your imagination.
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!