/bitcoin-bruteforce

Bitcoin private key brute force written in Python

Primary LanguagePythonMIT LicenseMIT

bitcoin-bruteforce CodeFactor

Bitcoin public address brute force written in Python with simplicity and speed in mind

Functions

  • Compare multiple wallets to increase cracking speed
  • Divide workload over multiple CPU cores
  • Multiple bruteforce functions
  • Online wallet lookup (OBF)
  • Print generation output

Upcoming features

  • Automatic payout system
  • Save bruteforce progress
  • Create wallet database
  • See hash rate

Setup

THIS IS FOR EDUCATIONAL PURPOSES ONLY, YOU ARE RESPONSIBLE FOR YOUR ACTIONS

Debian install

  1. Install Python
  2. Install git and clone this repo:
$ sudo apt update -y && sudo apt upgrade -y
$ sudo apt install git -y
$ git clone https://github.com/meesvw/bitcoin-bruteforce.git
  1. Go into the bitcoin-bruteforce folder and install the requirements:
$ pip install -r requirements.txt
  1. Add wallets in the wallets.txt file:
$ sudo nano wallets.txt
  1. Run the code:
$ python3 bruteforce.py

Keep the code running when closing SSH session (Optional):

To keep your code running you can use screen. Install screen with the following command:

sudo apt install -y screen

After that just start the Python program (exit this session by pressing ctrl + a + d):

sudo screen python bruteforce.py

If you want to connect to your last session just use:

sudo screen -r

Usage

Add a wallet

When adding a new wallet to the wallets.txt file. Just insert it on top:

;new address here;
1P5ZEDWTKTFGxQjZphgWPQUpe554WKDfHQ
1FeexV6bAHb8ybZjqQMjJrcCrHGW9sb6uF
1LdRcdxfbSnmCYYNdeYpUnztiYzVfBEQeC
...

Check if the wallet has balance using Blockchain Explorer. You can use any wallet checker you like.

Start program

This Python script has multiple functions:

  • OTBF (Optimized traditional bruteforce) <- This is faster than TBF
  • TBF (Traditional bruteforce) <- Will try every wallet possible
  • RBF (Random bruteforce)
  • OBF (Online bruteforce)

In this example we will run the RBF attack on the wallets inside of the wallets.txt file:

 1. $ python bruteforce.py                                         # start the python program
 2. $ Select bruteforce mode:
 3. $ 0 - Exit
 4. $ 1 - RBF
 5. $ 2 - TBF
 6. $ 3 - OTBF
 7. $ 4 - OBF
 8. $ > 1                                                          # choose the function to use
 9. $ How many cores do you want to use (8 available):
10. $ > 8                                                          # choose how many cores you want to use
11. $ 
12. $ Starting bruteforce instances in mode: RBF with 8 core(s)    # feedback that it started bruteforcing

After line 12 you will see the instances that started, depending on the CPU cores you picked.

Found a wallet

When the bruteforce matches an address in the wallets.txt file. It will add or create the found.txt file. The Python program will also print the following:

$ Instance: 1 - Found: 1P5ZEDWTKTFGxQjZphgWPQUpe554WKDfHQ