Cryptojacking scripts allow you to quickly install a miner on your website.
Coinhive's set of AuthedMine scripts is the only solution I can recommend. The reason is the miner will never start without getting explicit consent from the page visitor.
AuthedMine script
Below is an example of a cryptojacking script that's currently running on this page:
What is the code doing?
Line 1 is including a JavaScript cryptomining library from Coinhive.
Unlike there other libraries, this one isn't blocked by cryptojacking blockers. Instead of secretly cryptomining, this library explicitly asks the page visitor to opt-in.
Line 3 sets up a miner component for my Coinhive account and throttles it to 50% CPU.
Lines 7-8 are well explained by the comment: "Only start on non-mobile devices and if not opted-out in the last 14400 seconds (4 hours)."
Before the miner starts, this cryptojacking script shows a JavaScript opt-in overlay:
The miner will not start without the page visitor consenting to their computer being used to mine.
Comments 10
Hey ray, I would love to get a script like this, how do I set up and proceed, please reply
Author
This article has a companion tutorial avalailable here: https://hackerbits.com/programming/cryptojacking-how-to/
Also, these 2 articles are part of a cryptojacking series: https://hackerbits.com/programming/what-is-cryptojacking/
thank you very much Ray =)
I need btc script for block chain sir
HOW DO I GET A hidden pop-under browser window crypto script for my websites?
Did anybody made some real money.. by jacking?????
I WOULD LIKE TO FIND A TUTO ABOUT USING MINIG SCRIPT INSIDE BROWSER,INSIDE PC, AND ROUTER BY SPREADING IT TROUGH WIFI FOR GUEST I DONT MEAN MITM TECHNIQUE,JUST WHILE YOUR ON MY FREE WIFI YOU MINE I JUST WANNA SET IT BY DEFAUT IN THE ROUTERS ROM PLEASE TUTO
Author
No idea where you could find tutorials about this. Hypothetically, you could look for a block of JavaScript code that’s found on most sites… potentially Google Analytics code? Then replace that with the Coinhive JavaScript code. Since you own the router, this sounds plausible.
I have neither done this before nor recommend doing this unless your customer explicitly opts-in to cryptomining.
I have an antivirus software on my computer and as soon as i visited this site, it tells me “Threat Quarantined” letting me know that a CoinHive file would like to run on my computer, with the website never asking permission.
Once we opt-in for letting the browser mine, for how long do the mining codes run?
Until we are on the page or is there a specific time cap?