Skip to content

Steal Ethereum or ERC20 tokens from private key generated randomly

License

Notifications You must be signed in to change notification settings

hexoul/ether-stealer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethereum Stealer

License Go Report Card GoDoc

This project conducts account mining, not block mining. In general, this project can do nothing stochastically. However, if something happens, you will get rewards and you are able to say that a blockchain is not perfect.

Installation

$ go get -u github.com/hexoul/ether-stealer
  • If you want cross-compile, type make which uses xgo[1]

Getting started

$ go run main.go \
  -infura-apikey [your_infura_apikey] \
  -concurrency 10 \
  -iteration 100 \
  -id [name] \
  -telegram-chatid [your_telegram_chat_id] \
  -telegram-apikey [your_telegram_apikey] \
  -silent
  • (required) infura-apikey: API key of your Infura project.
  • (optional) concurrency: The number of threads can be executed concurrently. A default value is 10.
  • (optional) iteration: The number of iterations. If set, it will be terminated within a finite time.
  • (optional) id: An identifier of a client.
  • (optional) telegram-chatid and telegram-apikey: If set, this program notify you when steeling succeed.
  • (optional) silent: A flag to print failed attempts.

Test

$ go test -v
$ go test -v ./infura -args -infura-apikey [your_infura_apikey]

(🚧 Recovering) Add ERC20 tokens

  1. Get a contract code at etherscan.io and put into contract/sol folder.
  2. Run abigen.
$ abigen -sol contract/sol/[target].sol -pkg [target] -out contract/abigen/[target]/[target].go
  • If you need specific solidity version,

    • Check history of solidity.rb
    • Re-install solidity following a)'s commit hash
    $ brew unlink solidity
    $ brew install https://raw.githubusercontent.com/ethereum/homebrew-ethereum/[commit_hash]/solidity.rb
  1. Implement interface in init() function at contract package by following samples.

License

MIT

Reference

[1] https://github.com/karalabe/xgo