Author

Topic: Mass Brainwallet Generator (Read 1342 times)

legendary
Activity: 980
Merit: 1000
August 01, 2016, 06:36:06 PM
#7
Good luck, this has been done years ago and there are dozens of auto-sweeping bots already out there.
hero member
Activity: 1068
Merit: 523
July 24, 2016, 12:37:31 AM
#6
Hey  Guys,

I am searching a mass Bitcoin brainwallet generator that can convert an text file which contains every line a brainwallet phrase, word or something like this to the associated bitcoin address and private key. I hope somebody could help me. Smiley

Best regards,

Patrick Smiley

what application are you making?
full member
Activity: 234
Merit: 100
July 23, 2016, 04:14:41 AM
#5
Not sure why you want one, but this does essentially the same thing you're looking for.

https://github.com/dan-v/bruteforce-bitcoin-brainwallet

Yes, this is what I search but I don't really know how to use in Python. Sad

You need to know about python man.
Otherwise things won't work out.

You can start knowing more about python from these 2 resources:

1. https://www.datacamp.com/courses/intro-to-python-for-data-science
2. https://www.python.org/about/gettingstarted

After that you can encode this to your mass breadwallet git.

Code:
def __init__(self):
        self.session = None
        self._base_url = None
        self._base_url_received = None
        self._base_url_balance = None
        self._received_suffix = '' #allow derived classes not to set this
        self._balance_suffix = ''

    @abstractmethod
    def open_session(self):
        logging.info("Opening new session to {}".format(self._base_url))
        self.session = requests.Session()
        open_session = self.session.get(self._base_url)
        if open_session.status_code != requests.codes.ok:
            raise Exception("Error: Failed to open connection to {}. Error: {}".format(self._base_url,
                                                                                       open_session.text))

    @abstractmethod
    def close_session(self):
        logging.debug("Closing session")
        self.session.close()
        self.session = None

    @abstractmethod
    def get_received(self, public_address):
        logging.debug("Getting received bitcoins for public address {}".format(public_address))
        if not self.session:
            raise Exception("Error: Need to open_session first before executing get_received")
        received_url = "{}/{}{}".format(self._base_url_received, public_address, self._received_suffix)
        logging.debug("requesting data from {}".format(received_url))
        bitcoins_received_text = self.session.get(received_url).text
        try:
            bitcoins_received = self.text_to_float(bitcoins_received_text)
        except Exception as e:
            logging.error("Got invalid received bitcoins response: '{}'".format(bitcoins_received_text))
            raise
        return bitcoins_received

    @abstractmethod
    def get_balance(self, public_address):
        logging.debug("Getting balance for public address {}".format(public_address))
        if not self.session:
            raise Exception("Error: Need to open_session before executing get_balance")
        balance_url = "{}/{}{}".format(self._base_url_balance, public_address, self._balance_suffix)
        logging.debug("requesting data from {}".format(balance_url))
        bitcoin_balance_text = self.session.get(balance_url).text
        try:
            bitcoin_balance = self.text_to_float(bitcoin_balance_text)
        except Exception as e:
            logging.error("Got invalid bitcoin balance response: '{}'".format(bitcoin_balance_text))
            raise
        return bitcoin_balance

    @staticmethod
    def text_to_float(text):
        try:
            return float(text)
        except Exception:
            raise

    @staticmethod
    def satoshi_to_btc(value):
        try:
            return value / 100000000.00000000
        except Exception:
            raise


class Abe(BaseBlockExplorer):
    STRING_TYPE = "abe"

    def __init__(self, server, port, chain):
        BaseBlockExplorer.__init__(self)
        self.server = server
        self.port = port
        self.chain = chain
        self.session = None
        self._base_url = "http://{}:{}".format(self.server, self.port)
        self._base_url_received = "{}/chain/{}/q/getreceivedbyaddress".format(self._base_url, self.chain)
        self._base_url_balance = "{}/chain/{}/q/addressbalance".format(self._base_url, self.chain)

    def open_session(self):
        return BaseBlockExplorer.open_session(self)

    def close_session(self):
        return BaseBlockExplorer.close_session(self)

    def get_balance(self, public_address):
        try:
            btc_balance = BaseBlockExplorer.get_balance(self, public_address)
        except Exception as e:
            raise
        return btc_balance

    def get_received(self, public_address):
        try:
            btc_balance = BaseBlockExplorer.get_received(self, public_address)
        except Exception as e:
            raise
        return btc_balance


class BlockchainInfo(BaseBlockExplorer):
    STRING_TYPE = "blockchaininfo"

    def __init__(self):
        BaseBlockExplorer.__init__(self)
        self._api_limit_seconds = 10
        logging.info("Note there is a {} second wait between each API call to respect posted limits".format(self._api_limit_seconds))
        self._base_url = "http://blockchain.info"
        self._base_url_received = "{}/q/getreceivedbyaddress".format(self._base_url)
        self._base_url_balance = "{}/q/addressbalance".format(self._base_url)

    def open_session(self):
        return BaseBlockExplorer.open_session(self)

    def close_session(self):
        return BaseBlockExplorer.close_session(self)

    def get_balance(self, public_address):
        logging.debug("Sleeping {} seconds before making API call".format(self._api_limit_seconds))
        time.sleep(self._api_limit_seconds)
        try:
            balance = BaseBlockExplorer.get_balance(self, public_address)
            btc_balance = self.satoshi_to_btc(balance)
        except Exception as e:
            raise
        return btc_balance

    def get_received(self, public_address):
        logging.debug("Sleeping {} seconds before making API call".format(self._api_limit_seconds))
        time.sleep(self._api_limit_seconds)
        try:
            received = BaseBlockExplorer.get_received(self, public_address)
            btc_received = self.satoshi_to_btc(received)
        except Exception as e:
            raise
        return btc_received

class Insight(BaseBlockExplorer):
    STRING_TYPE = "insight"

    def __init__(self):
        BaseBlockExplorer.__init__(self)
        self._base_url = "https://insight.bitpay.com"
        self._base_url_received = "{}/api/addr".format(self._base_url)
        self._base_url_balance = "{}/api/addr".format(self._base_url)
        self._received_suffix = "/totalReceived"
        self._balance_suffix = "/balance"

    def open_session(self):
        return BaseBlockExplorer.open_session(self)

    def close_session(self):
        return BaseBlockExplorer.close_session(self)

    def get_balance(self, public_address):
        try:
            balance = BaseBlockExplorer.get_balance(self, public_address)
            btc_balance = self.satoshi_to_btc(balance)
        except Exception as e:
            raise
        return btc_balance

    def get_received(self, public_address):
        try:
            received = BaseBlockExplorer.get_received(self, public_address)
            btc_received = self.satoshi_to_btc(received)
        except Exception as e:
            raise
return btc_received
legendary
Activity: 1274
Merit: 1006
Trainman
July 22, 2016, 05:27:05 PM
#4
Code:
from pybitcointools import *


with open('yourtextfile.txt') as textfile:
    for line in textfile:
       priv = sha256(line)
       pub = privtopub(priv)
       addr = pubtoaddr(pub)
       print priv
       print addr
if you want to print only the privatekeys remove the print addr if you want to print only the addresses remove the print priv
legendary
Activity: 1512
Merit: 1057
SpacePirate.io
July 22, 2016, 06:37:11 AM
#3
Not sure why you want one, but this does essentially the same thing you're looking for.

https://github.com/dan-v/bruteforce-bitcoin-brainwallet
hero member
Activity: 865
Merit: 1006
July 21, 2016, 04:37:51 PM
#2
Hey  Guys,

I am searching a mass Bitcoin brainwallet generator that can convert an text file which contains every line a brainwallet phrase, word or something like this to the associated bitcoin address and private key. I hope somebody could help me. Smiley

Best regards,

Patrick Smiley

Hello.

In python is very easy make this.

Best regards
member
Activity: 117
Merit: 250
July 21, 2016, 02:43:16 PM
#1
I search a mass brainwallet generator.
Jump to: