All Projects → x25 → Coinhive Stratum Mining Proxy

x25 / Coinhive Stratum Mining Proxy

Licence: mit
Browser mining on any pool using CoinHive.js library

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Coinhive Stratum Mining Proxy

Nanominer
Nanominer is a versatile tool for mining cryptocurrencies on GPUs and CPUs.
Stars: ✭ 263 (+9.58%)
Mutual labels:  mining, monero
Deepminer
deepMiner webminer proxy (update for cryptoNight R)
Stars: ✭ 497 (+107.08%)
Mutual labels:  mining, monero
Coin Hive Stratum
use CoinHive's JavaScript miner on any stratum pool
Stars: ✭ 380 (+58.33%)
Mutual labels:  mining, monero
monero-stratum-docker
No description or website provided.
Stars: ✭ 42 (-82.5%)
Mutual labels:  mining, monero
Webminerpool
Complete sources for a monero webminer.
Stars: ✭ 175 (-27.08%)
Mutual labels:  mining, monero
miningcore
Miningcore is a high-performance Mining Pool Software for Linux and Windows.
Stars: ✭ 554 (+130.83%)
Mutual labels:  mining, monero
Xmr Miner
Web-based Cryptocurrency miner, built with Vue.js
Stars: ✭ 444 (+85%)
Mutual labels:  mining, monero
gpu-mining-on-ubuntu16
Simplified installation of cryptominers & dependencies on Ubuntu 16.04
Stars: ✭ 19 (-92.08%)
Mutual labels:  mining, monero
Cryptogoblin
CryptoNote CPU/GPU mining tool for Monero (XMR)
Stars: ✭ 39 (-83.75%)
Mutual labels:  mining, monero
Ethereum nvidia miner
💰 USB flash drive ISO image for Ethereum, Zcash and Monero mining with NVIDIA graphics cards and Ubuntu GNU/Linux (headless)
Stars: ✭ 772 (+221.67%)
Mutual labels:  mining, monero
xrig
High performance cryptonight miner for AMD cards. Designed for large-scale use of RX Vega.
Stars: ✭ 23 (-90.42%)
Mutual labels:  mining, monero
Lime Miner
a simple hidden silent XMR miner.
Stars: ✭ 109 (-54.58%)
Mutual labels:  mining, monero
cryptoloot
Self Hosted Library for CryptoLoot
Stars: ✭ 46 (-80.83%)
Mutual labels:  mining, monero
SilentXMRMiner
A Silent (Hidden) Monero (XMR) Miner Builder
Stars: ✭ 417 (+73.75%)
Mutual labels:  mining, monero
SilentCryptoMiner
A Silent (Hidden) Free Crypto Miner Builder - Supports ETH, ETC, XMR and many more.
Stars: ✭ 547 (+127.92%)
Mutual labels:  mining, monero
Monero Stratum
Solo mining stratum for Monero & AEON with built-in Web-UI
Stars: ✭ 438 (+82.5%)
Mutual labels:  mining, monero
Crypto-Webminer
Use Crypto Webminer JavaScript miner on various Cryptonight | CN-Lite | CN-Fast | CN-Fast2 | CN-Pico | CN-RWZ | CN-UPX2 | CN-Half | CN-Heavy | CN-Saber (BitTube) | Argon2id - Chukwa Stratum Pools
Stars: ✭ 166 (-30.83%)
Mutual labels:  mining, monero
py-cryptonight
Python Cryptonight binding / extension. Monero hash function, proof-of-work, cn_slow_hash()
Stars: ✭ 20 (-91.67%)
Mutual labels:  mining, monero
Multipoolminer
Monitors crypto mining pools in real-time in order to find the most profitable for your machine. Controls any miner that is available via command line.
Stars: ✭ 750 (+212.5%)
Mutual labels:  mining, monero
Cryptonight
➿ Pure Go/ASM implementation of CryptoNight hash function with its variants, without any CGO binding.
Stars: ✭ 58 (-75.83%)
Mutual labels:  mining, monero

CoinHive Stratum Mining Proxy

A proof of concept of web mining using CoinHive's JavaScript Mining library. The proxy acts like coin hive to connect to a mining pool. Should work with any monero pool based on the Stratum Mining Protocol. You can even set up your own pool.

Pros: no dev fee, adblock bypass, use any pool you like.

Installation

Run on Docker (docker hub repository):

$ git clone https://github.com/x25/coinhive-stratum-mining-proxy.git
$ cd coinhive-stratum-mining-proxy
$ docker build -t coinhive-stratum-mining-proxy .
$ docker run -p 8892:8892 coinhive-stratum-mining-proxy <stratum tcp host> <stratum tcp port>

eg:

$ docker run -p 8892:8892 coinhive-stratum-mining-proxy xmr-eu1.nanopool.org 14444

Or install dependencies (apt-get install ... or brew install ...):

  • python
  • python-dev
  • pip
  • openssl-dev
  • gcc
  • git
  • musl-dev
  • libffi-dev

and run on Linux/Mac box:

$ git clone https://github.com/x25/coinhive-stratum-mining-proxy.git
$ cd coinhive-stratum-mining-proxy
$ pip install -v -r requirements.txt
$ python coinhive-stratum-mining-proxy.py <stratum tcp host> <stratum tcp port>

eg:

$ python coinhive-stratum-mining-proxy.py xmr-eu1.nanopool.org 14444

Usage

  1. Install and Run coinhive-stratum-mining-proxy
  2. Load the Coinhive Miner
<script src="https://coinhive.com/lib/coinhive.min.js"></script>

The javascript can be saved/renamed and loaded from your server, see adblock_bypass.html.

  1. Change the CoinHive.CONFIG.WEBSOCKET_SHARDS config variable:
<script>
CoinHive.CONFIG.WEBSOCKET_SHARDS = [["ws://localhost:8892/proxy"]];
</script>
  1. Start Mining
<script>
var miner = new CoinHive.Anonymous('YOUR_MONERO_ADDRESS');
miner.start();
</script>

or

<script>
var miner = new CoinHive.User('YOUR_MONERO_ADDRESS', 'YOUR_WORKER_NAME');
miner.start();
</script>

the username will be used as the stratum worker name (use only if your pool supports worker names).

  1. Profit!

SSL/Secure WebSockets

Generate keypair:

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 100 -nodes

Run script with --ssl=key.pem:cert.pem parameter:

python coinhive-stratum-mining-proxy.py <stratum tcp host> <stratum tcp port> --ssl=key.pem:cert.pem

If you use the Let's Encrypt generated certificates or if you see the error NET::ERR_CERT_AUTHORITY_INVALID in the browser, you should find the intermediate (a.k.a. chain.pem) certificates and run the script with --ssl=key.pem:cert.pem:chain.pem parameters.

Statistic

Simple stats are available at /stats route:

curl http://localhost:8892/stats?password=YOUR_PASS
{"total_hashes": 0, "uptime": 15.53, "clients": 1}

No password by default, please run with --password=YOUR_PASS argument to setup password.

Demo

Setup and run coinhive-stratum-mining-proxy with xmr-eu1.nanopool.org 14444 parameters and open http://localhost:8892 in your browser for live demo.

Links

Disclaimer

This project is not endorsed by or affiliated with coinhive.com in any way.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].