https://github.com/hexoul/ether-stealer
Steal Ethereum or ERC20 tokens from private key generated randomly
https://github.com/hexoul/ether-stealer
account blockchain crypto erc20 ether ethereum geth mining solidity steal
Last synced: 3 months ago
JSON representation
Steal Ethereum or ERC20 tokens from private key generated randomly
- Host: GitHub
- URL: https://github.com/hexoul/ether-stealer
- Owner: hexoul
- License: mit
- Created: 2018-08-08T05:45:37.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2023-05-05T12:11:25.000Z (over 2 years ago)
- Last Synced: 2025-06-08T08:09:25.115Z (4 months ago)
- Topics: account, blockchain, crypto, erc20, ether, ethereum, geth, mining, solidity, steal
- Language: Go
- Homepage:
- Size: 140 KB
- Stars: 39
- Watchers: 6
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Ethereum Stealer
[](https://raw.githubusercontent.com/hexoul/ether-stealer/master/LICENSE)
[](https://goreportcard.com/report/github.com/hexoul/ether-stealer)
[](https://godoc.org/github.com/hexoul/ether-stealer)> 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
```shell
$ go get -u github.com/hexoul/ether-stealer
```- If you want cross-compile, type ```make``` which uses xgo[1]
## Getting started
```shell
$ 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
```shell
$ 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](https://etherscan.io/) and put into `contract/sol` folder.
2. Run `abigen`.
```shell
$ 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](https://github.com/ethereum/homebrew-ethereum/commits/master/solidity.rb)
- Re-install solidity following a)'s commit hash
```shell
$ brew unlink solidity
$ brew install https://raw.githubusercontent.com/ethereum/homebrew-ethereum/[commit_hash]/solidity.rb
```
3. Implement interface in `init()` function at contract package by following samples.## License
MIT## Reference
[1] https://github.com/karalabe/xgo