Skip to content

franzkruhm/Plutus-Scroo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scroo will no longer be updated on github for various reasons; including the fact that I've decided to start work on a proprietary, closed source, version following some positive results. Thanks to all and if you are still using this or working on a fork or whatever I'd like to hear about it.

Scroo Bitcoin Brute Forcer, memcached workaround the memory issue and fixed keygen

A Bitcoin wallet collider that brute forces random wallet addresses from a databases of known addresses

PLEASE NOTE: It is quite unlikely you will find a working address like this; the number of potential addresses used by Bitcoin is enormous, as in, you'd need billion of years of processing. This is mostly an exercise in optimization, it is very unlikely to make you rich.

About This Fork

Workaround for memory usage using memcached. Also fixes/replaces Plutus' keygen

BEWARE: MANY BUGS MAY YET STILL LURK, please review code carefully before using for production

See the TODO list at the bottom for potential issues

PLEASE NOTE: filldb.py (from pickle files) is no longer supported. filldb-text.py is the way to go using a text file containing the addresses to be tested against.

About memcached

You will need to download a 64bit version of memcached. On windows 10 performance testing showed that memcached 1.4.5 performed better than recent versions (1.6...) taking 3.5mn to test 1 million addresses (instead of 5mn) on a i7-10750h laptop Thus an older version of memcached seems considerably faster. Thus at this time on Windows 10 the version of memcached I would recommend can be found at http://downloads.northscale.com/memcached-1.4.5-amd64.zip

Warning for Linux users

It is possible that your distro might already be running an instance of memcached with limited parameters, in which case this will interfere. You'll need to check your distro to establish what parameters the built-in memcached is running with and adjust accordingly.

Wanna Support Me?

ko-fi

Please consider kind support !

BTC: bc1q5gkn0tln6su3tvwnld7xf7p20fjssaufles47d
ETH: 0xD7A75bF1b64e302ad07b0843A9D295F9a9E3db8E
DOT: 146LV65VWKxM3HsGWNMdjvB3YKg7JHYnRkeX2K3vSTJYxsdB 

Install

You will need Python 3 with pymemcache and ecdsa, along with a good version of memcached as mentionned above. You can install the Python dependencies using pip.

Quick Start

$ memcached -n 70 -m 5200 -M -t 12
$ python filldb-text.py
$ python scroo.py

Note: depending on the current size of the database you may need to adjust the -m option on memcached.

Proof Of Concept

A private key is a secret number that allows Bitcoins to be spent. If a wallet has Bitcoins in it, then the private key will allow a person to control the wallet and spend whatever balance the wallet has. So this program attempts to find Bitcoin private keys that correlate to wallets with positive balances. However, because it is impossible to know which private keys control wallets with money and which private keys control empty wallets, we have to randomly look at every possible private key that exists and hope to find one that has a balance.

This program is essentially a brute forcing algorithm. It continuously generates random Bitcoin private keys, converts the private keys into their respective wallet addresses, then checks the balance of the addresses. If a wallet with a balance is found, then the private key, public key and wallet address are saved to the text file plutus.txt on the user's hard drive. The ultimate goal is to randomly find a wallet with a balance out of the 2160 possible wallets in existence.

Efficiency

The efficiency of scroo has not been tested. You are welcome to post results and improve upon them. Sanity checks happen against a known address in the database on each thread after 100k requests if it fails the program exits as this may mean a problem with memcached. Loading from pickles to memcached to slow, this needs to be worked on

Database FAQ

An offline database is used to find the balance of generated Bitcoin addresses. Using filldb-text.py you can load a text file (data.txt) with a list of public addresses. (without balance) Please use responsibly, do not burden servers that list bitcoin addresses by constantly downloading copies of the database. Keep a local copy.

Expected Output

Every time this program checks the balance of a generated address, it will print the result to the user. If an empty wallet is found, then the wallet address will be printed to the terminal. An example is:

1Kz2CTvjzkZ3p2BQb5x5DX6GEoHX2jFS45

However, if a wallet with a balance is found, then all necessary information about the wallet will be saved to the text file plutus.txt. An example is:

hex private key: 5A4F3F1CAB44848B2C2C515AE74E9CC487A9982C9DD695810230EA48B1DCEADD
WIF private key: 5JW4RCAXDbocFLK9bxqw5cbQwuSn86fpbmz2HhT9nvKMTh68hjm
public key: 04393B30BC950F358326062FF28D194A5B28751C1FF2562C02CA4DFB2A864DE63280CC140D0D540EA1A5711D1E519C842684F42445C41CB501B7EA00361699C320
address: 1Kz2CTvjzkZ3p2BQb5x5DX6GEoHX2jFS45

Memory Consumption

This program uses approximately 4.1GB of RAM (with current database) total + some overhead (about 8 megs) for each core/cpu.

Recent Improvements & TODO

  • Fixed memory use
  • Fixed keygen
  • Split database loading from rest of code so "client" machines can now be used by changing connection IP in scroo.py
  • Display some stats
  • Improve loading times, now supports reading directly for data.txt (expect 3mn to load about 38 million addresses from data.txt)
  • Check performance, performance is better with an older version of memcached on Windows. numba doesn't change performance if anything it is slower.
  • Fixed sanity checking, see scroo.py and filldb-text.py
  • Ensure proper RAM usage/size for memcached vs database
  • Optimize code

About

An automated bitcoin wallet collider that brute forces random wallet addresses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%