SHARE
TWEET

Untitled

a guest Feb 20th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setTimeout(function() {
  2.     "use strict";
  3.     window.bot = {x:0, y:0, ip:null, byteLength:0};
  4.     WebSocket.prototype.Asend = WebSocket.prototype.send;
  5.     WebSocket.prototype.send = function(arrayBuffer) {
  6.         this.Asend(arrayBuffer);
  7.         var dataView = new DataView(arrayBuffer);
  8.         if(dataView.byteLength === 21) {
  9.             if(dataView.getUint8(0) === 16) {
  10.                 bot.x = dataView.getFloat64(1, true);
  11.                 bot.y = dataView.getFloat64(9, true);
  12.                 bot.byteLength = dataView.byteLengthsocket
  13.             }
  14.         };
  15.         if(dataView.byteLength === 13) {
  16.             if(dataView.getUint8(0) === 16) {
  17.                 bot.x = dataView.getInt32(1, true);
  18.                 bot.y = dataView.getInt32(5, true);
  19.                 bot.byteLength = dataView.byteLength
  20.             }
  21.         };
  22.         if(dataView.byteLength === 5 || dataView.byteLength < 4) {
  23.             if(dataView.getUint8(0) === 16) {
  24.                 bot.x = dataView.getInt16(1, true);
  25.                 bot.y = dataView.getInt16(3, true);
  26.                 bot.byteLength = dataView.byteLength
  27.             }
  28.         };
  29.         if(this.url !== null) {
  30.             bot.ip = this.url;
  31.             console.log(bot.ip)
  32.         }
  33.     };
  34.     if(window.botServer) {
  35.         var socket = io.connect('ws://' + window.botServer);
  36.     } else {
  37.         var socket = io.connect("ws://bots-ahmadhaji001313017.codeanyapp.com:3000");
  38.     }
  39.     document.addEventListener("keydown", function(keyboardEvent) {
  40.         if(keyboardEvent.key) {
  41.             switch(keyboardEvent.key) {
  42.                 case "s":
  43.                     socket.emit("split");
  44.                     break;
  45.                 case "f":
  46.                     socket.emit("eject");
  47.                     break;
  48.                 case "[":
  49.                     socket.emit("spam");
  50.                     break;
  51.             }
  52.            
  53.         } else {
  54.             var keyCharacterValue = keyboardEvent.keyCode || keyboardEvent.which;
  55.             switch(keyCharacterValue) {
  56.                 case 83:
  57.                     socket.emit("split");
  58.                     break;
  59.                 case 70:
  60.                     socket.emit("eject");
  61.                     break;
  62.                 case 91:
  63.                     socket.emit("spam");
  64.                     break
  65.             }
  66.         }
  67.     });
  68.     setInterval(function() {
  69.         socket.emit("movement", {x:bot.x, y:bot.y, byteLength:bot.byteLength})
  70.     }, 100);
  71.     setTimeout(function() {
  72.         $( "#overlays" ).after( "<div style='z-index: 10000000; border-radius: 4px;position: fixed; top: 300px; right: 10px; text-align: center; width: 200px; background-color: #000; opacity: 0.9; padding: 7px;'> <div style='border-radius: 25px; text-indent:0; border:3px solid #fff; display:inline-block; color:#000; font-family:arial; font-size:15px; font-weight:bold; font-style:normal; height:30px; -webkit-box-shadow: 0px 0px 52px -6px rgba(46,204,113,1); -moz-box-shadow: 0px 0px 52px -6px rgba(46,204,113,1); box-shadow: 0px 0px 52px -6px rgb(202, 202, 202); line-height:1.5em; text-decoration:none; text-align:center; width: 190px; color: #fff;'>NeyBots.ga</div><br><br><button id='start-bots' style='color:green;'>Start</button><button id='stop-bots' style='color:red; display:none;'>Stop</button><br><br> <a style='color: #fff; font-family: arial;'>Bots: </a><a style='color: #fff; font-family: arial;' id='minionCount'></a><br> <a style='color: #fff; font-family: arial;'>X/Y: </a><a style='color: #fff; font-family: arial;'id='gh45nmvsy'>0,0</a><br><br><a style='color: #fff; font-family: arial;'>S - Split Bots</a><br><a style='color: #fff; font-family: arial;'>F - Bots Feed </a> <div style='margin-top:10px; text-align:center; color:white; font-family:arial;'>NeyBots Customized By Olaf<br><a href='http://cellbots.gq/' target='_blank' style='color:#dcf5f9;'>CellBots</a></div></div>" );
  73.         document.getElementById("start-bots").onclick = function() {
  74.             socket.emit("start", {ip:bot.ip!== null?bot.ip:0, origin:location.origin})
  75.             document.getElementById("start-bots").style.display = "none";
  76.             document.getElementById("stop-bots").style.display = "inline-block";
  77.         }
  78.         document.getElementById("stop-bots").onclick = function() {
  79.             socket.emit("stop")
  80.             document.getElementById("stop-bots").style.display = "none";
  81.             document.getElementById("start-bots").style.display = "inline-block";
  82.         }
  83.     }, 2000);
  84.     socket.on("botCount", function(botCount) {
  85.         $("#minionCount").html(botCount)
  86.     })
  87. }, 200)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top