Sign in or Sign up

==>DIY<== MINE MONERO ON COMPUTERS WITH JAVASCRIPT!
Started by Caiky


Rate this topic
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


15 posts in this topic
[NS]Caiky Offline
That one girl who writes tutorials
***


NulledSystems
Posts: 80
Threads: 17
Joined: Mon Oct 2017
Reputation: 6

CZPoints: 83 CZP
CoolContributorDiamondDonator
Star  10-03-2017, 04:57 PM -
#1
Hey lads! Going to include a little bit of a bonus method at the end.


 First things first, we're going to be using CoinHive for most of this, because they have a lot of easy to use resources for this. Setting up something like CoinHive uses would take A LOT more time and work, which CoinHive does for us. I do highly recommend setting up your own JavaScript miner if you know how to, but I'm going to set up this tutorial for the newbies to hacking/coding/mining/etc. The only requirement is knowing some basic JavaScript to customize the API to your liking.


The Basics
First, the script to load the miner is 

Hidden Content
You must register or login to view this content.


The script to start the miner is

Hidden Content
You must register or login to view this content.


and finally an optional script to listen in on the events of the miner for whatever reason

Hidden Content
You must register or login to view this content.


You will need at least the first two bits of code in your website to mine Monero/XMR on visitor's computers. It will continue mining for as long as the visitor is on the page you put the script on.
There are currently no laws stating that you need to mention that you are mining as long as they are on your website, so mine away!

Customizing the API

I'm going to assume you know some extremely basic JavaScript and understand how to customize API for this part, so I won't explain it in too much depth.
API Reference
Put the code you want in the proper places and you can do pretty much anything to the miner.

Verifying a Captcha by Mining

 Unlike with a normal captcha where you enter in some letters, a word, selecting pictures, or other tasks that a bot would likely fail at doing, it would let them through. It would be extremely inefficient for the spammer as it would take a large amount of time per captcha if bots were run by a crappy computer, and they'd be giving you money either way.Whatever amount of time required to do a certain number of hashes would be the amount of time the captcha would take. For an example, a Macbook Air would take 25.6 seconds to mine 1024 hashes. That being said, a computer with an i7-7700k CPU would mine 1024 hashes in ~1 second.

At the current XMR/Monero price at the time of this writing, every time someone does 1024 hashes you'd get 0.0000206486$ or 0.00000022XMR. Obviously this isn't a lot, but that's why we can customize the amount of hashes the person who does the captcha has to do to pass. Anyway, onto the code.

To embed CoinHive's captcha into your website, you will have to load the

Hidden Content
You must register or login to view this content.


The text in the following code (Loading Captcha...) will be replaced by the captcha.

Hidden Content
You must register or login to view this content.


Editing the captcha and editing/using the token verification can be found here. Otherwise, everything in this tutorial is all you need to set it up properly.

Shortlink That Mines Monero


CoinHive includes a program that is somewhat like Adfly, except it just mines XMR/Monero for a certain amount of hashes of your choosing. You can create the shortlink to go to any website you'd like.
Example link (Mines 3072 hashes then sends you the home page of the forum)
Shortlink Setup Page

That's all lads! Written by Caiky, code from CoinHive. I hope you find this tutorial useful.  Hi
This post was last modified: 10-23-2017, 07:52 AM by Caiky. Edit Reason: Added hide tags
All my HQ tutorials can be found here. Click me! <3
Donate some BTC if you like my stuff <3 1krWpnAG4NNBJyfYWBBKuurgywbPGNdL3
Corruption Offline
Administrator
*******


Administrators
Posts: 291
Threads: 67
Joined: Fri Mar 2017

CZPoints: 119 CZP
10-03-2017, 05:19 PM -
#2
This is really awesome.

Pirate Bay was doing this on his users for a wile until they got caught.

Source: https://thehackernews.com/2017/09/pirate...ining.html

Thanks for the awesome share.
[NS]Caiky Offline
That one girl who writes tutorials
***


NulledSystems
Posts: 80
Threads: 17
Joined: Mon Oct 2017
Reputation: 6

CZPoints: 83 CZP
CoolContributorDiamondDonator
10-03-2017, 06:34 PM -
#3
(10-03-2017, 05:19 PM)Corruption Wrote: This is really awesome.

Pirate Bay was doing this on his users for a wile until they got caught.

Source: https://thehackernews.com/2017/09/pirate...ining.html

Thanks for the awesome share.

Thanks mate! Yeah, I heard about pirate bay doing that, pretty great idea to replace ads in my opinion.
All my HQ tutorials can be found here. Click me! <3
Donate some BTC if you like my stuff <3 1krWpnAG4NNBJyfYWBBKuurgywbPGNdL3
Corruption Offline
Administrator
*******


Administrators
Posts: 291
Threads: 67
Joined: Fri Mar 2017

CZPoints: 119 CZP
10-03-2017, 06:35 PM -
#4
Truly is a great idea but they should of at list told there users.
[NS]Caiky Offline
That one girl who writes tutorials
***


NulledSystems
Posts: 80
Threads: 17
Joined: Mon Oct 2017
Reputation: 6

CZPoints: 83 CZP
CoolContributorDiamondDonator
10-03-2017, 07:02 PM -
#5
(10-03-2017, 06:35 PM)Corruption Wrote: Truly is a great idea but they should of at list told there users.

Agreed, they probably lost a small chunk of their user base by pulling that stunt.
All my HQ tutorials can be found here. Click me! <3
Donate some BTC if you like my stuff <3 1krWpnAG4NNBJyfYWBBKuurgywbPGNdL3
ScorpionOfWar Offline
Super Moderator
******


Super Moderators
Posts: 239
Threads: 11
Joined: Fri Mar 2017
Reputation: 14

CZPoints: 38 CZP
Contributor
10-04-2017, 08:41 AM -
#6
Such an awesome thread! Thanks for sharing this with us.

#Dont forget the hide tags next time please ;)
[ hide ]

[ / hide ]
[Image: PWXNX5p.gif]

Discord - @ScorpionOfWar#0001
[NS]Caiky Offline
That one girl who writes tutorials
***


NulledSystems
Posts: 80
Threads: 17
Joined: Mon Oct 2017
Reputation: 6

CZPoints: 83 CZP
CoolContributorDiamondDonator
10-04-2017, 06:27 PM -
#7
(10-04-2017, 08:41 AM)ScorpionOfWar Wrote: Such an awesome thread! Thanks for sharing this with us.

#Dont forget the hide tags next time please ;)
[ hide ]

[ / hide ]

No problem lad! And yeah, my bad, I keep forgetting to hide them.
All my HQ tutorials can be found here. Click me! <3
Donate some BTC if you like my stuff <3 1krWpnAG4NNBJyfYWBBKuurgywbPGNdL3
drillbyte Offline
~# Contributor #~
***


Contributor
Posts: 60
Threads: 17
Joined: Thu Oct 2017
Reputation: 0

CZPoints: 40 CZP
Contributor
10-18-2017, 01:22 AM -
#8
Time to give this a try...
FrogSquad4 Offline
Junior Member
**


Registered
Posts: 3
Threads: 0
Joined: Sat Oct 2017
Reputation: 0

CZPoints: 0 CZP
10-21-2017, 07:17 AM -
#9
I'll try it
Hi Caiky <3
Xpad Offline
Junior Member
**


Registered
Posts: 8
Threads: 0
Joined: Sat Oct 2017
Reputation: 0

CZPoints: 0 CZP
10-21-2017, 02:46 PM -
#10
Is that coinhive eh?




Users browsing this thread: 1 Guest(s)