Skip to content

Let your users mine Monero for you and reward them with special permissions

License

Notifications You must be signed in to change notification settings

DatDraggy/coinhive-teamspeak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coinhive Monero Miner TeamSpeak3 Integration

Let your TeamSpeak users mine Monero for you with one quick registration without having to download anything.

Users will receive a special TeamSpeak group upon reaching a customisable amount of hashes.

Finding security related bugs will be rewarded in ZenCash.

Dependencies

What you need to use this project:

  1. Webserver + PHP + MySQL Server
  2. TeamSpeak3 Server
  3. coinhive.com Account
  4. Domain (optional)

How to use

  1. Put all files on your webserver

  2. Import coinhive_teamspeak.sql into your mysql server. You can use PHPMyAdmin or the terminal

    mysql -u username -p coinhive_teamspeak < /path/to/file/coinhive_teamspeak.sql

  3. Go to coinhive.com and create an account.

  4. After logging in, click "settings" in the top right corner.

  5. Select "Sites & API Keys"

  6. Create a new site and copy your Secret Key (private) to config.php Warning: Make sure that there is no space and that the key is correct! Otherwise it won't show the remaining hashes.

  7. Copy Site Key to miner.html on line 113

  8. Fill out the rest of config.php

  9. Create directory called "log" in hive and set permissions to 777 if you want to enable sql error logging.

If you setup everything correctly you should be able to register and start mining by visiting miner.html on your domain.

Upgrading

If only the last digit of the version increased, there is no need to re-do the configuration. Only if the first or second (vFirst.Second.Third) changed.

Example:

Old version v1.1.0, new version v1.1.1: You can use your old configuration

Old version v1.1.0, new version v1.2.0: Re-do (recommended) or edit your configuration

Support

I will try to assist you as good as I can in the issues tab if you need any help.

Please don't forget to mention your webserver version (apache, nginx, etc) and when you downloaded the script. That makes it a little easier.

If errors occur, they will (hopefully) show in the browsers console. If you or me can't find the error, please enable "display_errors" by putting display_errors = on at the bottom of your php.ini file.

Donations

BTC 122WSgrn2YVG6KQSKB53jfCaZYi3xMi6nb
ETH 0x4b39187EBBb674Fb659A81a433D8e8AfbE3aA32b
XMR 4916AsgEtXb68jck6PSYabbdLrpZUKTwQaA7Wm9tNKkAJwizHysjNK1ek989QX3hmtF1GHd1sUdn9G8bEBFNiWpw5pm4ToF

Version History

v1.2.0

  • fixed bug where uid's containing + wouldn't make any progress

Notice: Add following to the end of your config if you don't want to redo it:

function uidencode($uid){return str_replace("+", "$$", $uid);}
function uiddecode($uid){return str_replace("$$", "+", $uid);}

v1.1.3

  • fixed a small client-side XSS vulerability, malicious users were able to inject javascript
  • fixed error when assigning group with multiple servers in config

v1.1.2

  • added small notice about secret key in readme
  • autoremove spaces from secret key, common mistake

v1.1.1

  • port check
  • added explanations
  • added upgrade notice

v1.1.0

  • added debug for better troubleshooting
  • changed default bot name

v1.0.0

  • Release

Legal notice

MIT License

Copyright (c) 2017 DatDraggy

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Let your users mine Monero for you and reward them with special permissions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published