<p>To bruteforce a wallet.dat file you would need to follow these steps.</p>
<ol>
<li>Install python from python.org</li>
<li>Download john the ripper from github</li>
<li>run the script bitcoin2john.py to extract the hash</li>
<li>get hashcat from hashcat.net</li>
</ol>
<p>With hashcat you can search the entire space of numbers of your choice using a mask ?d?d?d?d?d?d and increment.</p>
<p>Your hashcat command would look like: hashcat -m 11300 wallethash.txt -a 3 ?d?d?d?d?d?d?d --increment etc would work</p>
<p>Once the password is found you can use it to export the private key from core.</p>
<p>(From another topic, but i can help you if you have question)</p>

CC BY-SA 4.0
2021-09-14T20:44:16.247Z
You forgot to mention that it might take millennia to discover the key using brute force.
Hannah Vernon
CC BY-SA 4.0
2021-09-15T21:14:24.377Z
if you have no idea what the password is, it could take a lifetime. With a bit of luck, good wordlists and good settings, it can be found. 
But if you know the length, some characters or the ones used, the password can be found much easier.
SinBeTa
CC BY-SA 4.0
2021-09-13T19:23:25.147Z
2021-09-13T19:23:25.147Z
SinBeTa
<p>If you are using Bitcoin Core:</p>
<p>1 - Go to window &gt; console</p>
<p>2 - Type listunspent</p>
<p>3 - You will get a list of addresses with the spendable amount</p>
<p>4 - Copy one of those addresses</p>
<p>5 - Type dumpprivkey pasteYourAddressHere</p>

CC BY-SA 4.0
2021-05-16T13:03:55.767Z
2021-05-16T13:03:55.767Z
Alexis
<p>i am not really a computer programmer, but i want to get my private key from my wallet.dat, i have just the wallet.dat file and the public address where the bitcion was send. From my previous researches, i was told brute force the wallet is good to use, like i said i got just the wallet.dat file, but while trying to see on how i could proceed with the brute force process, it requires a hastcat and a master key whereas i have just the .dat file.</p>
<p>my question are</p>
<ol>
<li><p>how do i get the hashcat? is there a site i will go and putin some particular word to be able to get the hashcat? if yes which word?</p>
</li>
<li><p>how do i get the master key as well since i have just the wallet.dat and the address in which the bitcoin was send to</p>
</li>
</ol>

CC BY-SA 4.0
2021-05-03T11:00:00.910Z
i can't remember the password, but i have linked the wallet.dat file to the new bitcoin core i downloaded on my new machine, windows 10 to be precise
Andrew
<private-key><hash><wallet.dat><recover-private-key>
how do i brute force my wallet.dat to get my private key
Andrew
# how do i brute force my wallet.dat to get my private key

(Asked by: username_0 on 2021-05-03)

i am not really a computer programmer, but i want to get my private key from my wallet.dat, i have just the wallet.dat file and the public address where the bitcion was send. From my previous researches, i was told brute force the wallet is good to use, like i said i got just the wallet.dat file, but while trying to see on how i could proceed with the brute force process, it requires a hastcat and a master key whereas i have just the .dat file.

my question are

1. how do i get the hashcat? is there a site i will go and putin some particular word to be able to get the hashcat? if yes which word?
2. how do i get the master key as well since i have just the wallet.dat and the address in which the bitcoin was send to

**Tags:** private-key, hash, wallet.dat, recover-private-key

> **Comments:**
> **username_0**: i can't remember the password, but i have linked the wallet.dat file to the new bitcoin core i downloaded on my new machine, windows 10 to be precise  

---

## 2 answers

### Answer by username_1 on 2021-09-13. Score: 2

To bruteforce a wallet.dat file you would need to follow these steps.

1. Install python from python.org
2. Download john the ripper from github
3. run the script bitcoin2john.py to extract the hash
4. get hashcat from hashcat.net

With hashcat you can search the entire space of numbers of your choice using a mask ?d?d?d?d?d?d and increment.

Your hashcat command would look like: hashcat -m 11300 wallethash.txt -a 3 ?d?d?d?d?d?d?d --increment etc would work

Once the password is found you can use it to export the private key from core.

(From another topic, but i can help you if you have question)

> **Comments:**
> **username_2**: You forgot to mention that it might take millennia to discover the key using brute force.  
> **username_1**: if you have no idea what the password is, it could take a lifetime. With a bit of luck, good wordlists and good settings, it can be found.  But if you know the length, some characters or the ones used, the password can be found much easier.  

---

### Answer by username_3 on 2021-05-16. Score: -2

If you are using Bitcoin Core:

1 - Go to window > console

2 - Type listunspent

3 - You will get a list of addresses with the spendable amount

4 - Copy one of those addresses

5 - Type dumpprivkey pasteYourAddressHere


---

