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.
What you need to use this project:
- Webserver + PHP + MySQL Server
- TeamSpeak3 Server
- coinhive.com Account
- Domain (optional)
-
Put all files on your webserver
-
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
-
Go to coinhive.com and create an account.
-
After logging in, click "settings" in the top right corner.
-
Select "Sites & API Keys"
-
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.
-
Copy Site Key to miner.html on line 113
-
Fill out the rest of config.php
-
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.
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
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.
BTC 122WSgrn2YVG6KQSKB53jfCaZYi3xMi6nb
ETH 0x4b39187EBBb674Fb659A81a433D8e8AfbE3aA32b
XMR 4916AsgEtXb68jck6PSYabbdLrpZUKTwQaA7Wm9tNKkAJwizHysjNK1ek989QX3hmtF1GHd1sUdn9G8bEBFNiWpw5pm4ToF
- 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);}
- fixed a small client-side XSS vulerability, malicious users were able to inject javascript
- fixed error when assigning group with multiple servers in config
- added small notice about secret key in readme
- autoremove spaces from secret key, common mistake
- port check
- added explanations
- added upgrade notice
- added debug for better troubleshooting
- changed default bot name
- Release
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.