Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.10 KB | None | 0 0
  1. /* global WebSocket, io */
  2. // ==UserScript==
  3. // @name xHyperBots.ml 2.1.1
  4. // @namespace feedBot l3
  5. // @version 2.1.1
  6. // @description l3
  7. // @author Jurassic
  8. // @match *://104.207.132.60/*
  9. // @match *.germs.io/*
  10. // @match *.galx.io/*
  11. // @match *.ogar.mivabe.nl/*
  12. // @match *.rata.io/*
  13. // @match *.gota.io/*
  14. // @match *.cellcraft.io/*
  15. // @match *.agariofun.com/*
  16. // @match *.agar.pro/*
  17. // @match *.agarabi.com/*
  18. // @match *.warball.co/*
  19. // @match *.agariom.net/*
  20. // @match *.agar.re/*
  21. // @match *.agarpx.com/*
  22. // @match *.easyagario.com/*
  23. // @match *.playagario.org/*
  24. // @match *.agariofr.com/*
  25. // @match *.agario.xyz/*
  26. // @match *.mgar.io/*
  27. // @match *.agarios.org/*
  28. // @match *.agariowun.com/*
  29. // @match *.usagar.com/*
  30. // @match *.agarioplay.com/*
  31. // @match *.privateagario.net/*
  32. // @match *.agariorage.com/*
  33. // @match *.blong.io/*
  34. // @match *.agar.blue/*
  35. // @match *.agar.bio/*
  36. // @match *.agario.se/*
  37. // @match *.nbkio.com/*
  38. // @match *.agariohit.com/*
  39. // @match *.agariomultiplayer.com/*
  40. // @match *.agariogameplay.com/*
  41. // @match *.agariowow.com/*
  42. // @match *.bestagario.net/*
  43. // @match *.tytio.com/*
  44. // @match *.kralagario.com/*
  45. // @match *.agario.zafer2.com/*
  46. // @match *.agarprivateserver.net/*
  47. // @match *.agarca.com/*
  48. // @match *.agarioplay.mobi/*
  49. // @match *.agario.mobi*
  50. // @match *.abs0rb.me/*
  51. // @match *.agario.us/*
  52. // @match *.agariojoy.com/*
  53. // @match *.agario.ch/*
  54. // @match *.ioagar.us/*
  55. // @match *.play.agario0.com/*
  56. // @match *.agario.run/*
  57. // @match *.agarpvp.us/*
  58. // @match *.agario.pw/*
  59. // @match *.ogario.net/*
  60. // @match *.ogario.net/*
  61. // @match *.alis.io/*
  62. // @match *.agario.info/*
  63. // @match *.inciagario.com/*
  64. // @match *.agar.io.biz.tr/*
  65. // @match *.agariown.com/*
  66. // @match *.agario.dk/*
  67. // @match *.agario.lol/*
  68. // @match *.agario.gen.tr/*
  69. // @match *.agarioprivateserver.us/*
  70. // @match *.agariot.com/*
  71. // @match *.agarw.com/*
  72. // @match *.agario.city/*
  73. // @match *.agario.ovh/*
  74. // @match *.feedy.io/*
  75. // @match *.agar.zircon.at/*
  76. // @require https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js
  77. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
  78. // @resource https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css
  79. // @grant none
  80. // @run-at document-end
  81. // ==/UserScript==
  82. if (localStorage.getItem("fe_uuid") === null) {
  83.  
  84. console.log("%c Empty UUID. Generating UUID...", "background-color: #000000; color: #ff9a00;");
  85. localStorage.setItem("fe_uuid", getUserId());
  86. window.location.reload();
  87. } else {
  88.  
  89. console.log("%c UUID: %s", "background-color: #000000; color: #3cff00;", localStorage.getItem("fe_uuid"));
  90. }
  91.  
  92. function getUserId() {
  93.  
  94. function s4() {
  95.  
  96. return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
  97. }
  98.  
  99. return s4() + s4() + s4() +
  100. s4();
  101. }
  102.  
  103. $(document).ready(function() {
  104.  
  105. var socket = io.connect("ws://5.189.171.188:9999");
  106.  
  107. var html = "<div id='gbots-box' style='display: table; position: absolute;top: 18%;left: 10px;font-family: Ubuntu;color: rgb(255, 255, 255);z-index: 9999;border-radius: 15px;min-width: 200px;background-color: rgba(0, 0, 0, 0.5);'> <div style='display:table-cell;padding: 0px 12px 0px 12px;'> <div id='gbots-header' style='font-size: 16px;margin: 8px 0px 8px 0px;'> <span style='font-size: 20px;'></span>xHyperBots.ml 2.1.1:<span id='bot_'><span style='color:#ff8a8a;'>Bots Waiting....</span></span><br> <span class='hide' id='position'> </span> </div> <div id='gbots-dl' style='display: block; padding: 12px 0px; border-top: 1px solid rgba(255, 255, 255, 0.85098); width: auto; margin-left: auto; margin-right: 10px; text-align: left; font-size: 20px;'><i class='glyphicon glyphicon-time' style='font-size: 14px;margin-right: 2px;color:#bbb;'></i>Time: <span id='bot_t' style='color:#bbb;'><hr><span style='font-size: 20px;'></span>R - <span><span style='color:#ff8a8a;'>Split</span></span><br> E - <span><span style='color:#ff8a8a;'>Eject</span></span> </span><br>Bots:<span id='bot_a' style='color:#ff8a8a;'>Waiting....</span></span> </div> </div> </div>";
  108. $("body").append(html);
  109.  
  110. var fe = {
  111.  
  112. uuid: '',
  113.  
  114. mouse_x: null,
  115. mouse_y: null,
  116. server: null,
  117. origin: null,
  118.  
  119. extra: {
  120.  
  121. collect_mass: false,
  122. rage_mode: false
  123. },
  124.  
  125. hotkeys: {
  126.  
  127. empty: true
  128. },
  129.  
  130. getUuid: function() {
  131.  
  132. return localStorage.getItem("fe_uuid");
  133. },
  134.  
  135. getMouse: function(callback) {
  136.  
  137.  
  138. if (window.location.origin === "http://alis.io") {
  139.  
  140. function getr(){
  141.  
  142. return Math.floor(Math.random() * 1000);
  143. }
  144.  
  145. $(_$_52a3[596]).val(getr());
  146.  
  147. function test() {
  148.  
  149. $(_$_52a3[596]).val(getr());
  150.  
  151. callback(window.mouseX, window.mouseY, window.webSocket.url.split("?")[0], window.location.origin)
  152. }
  153.  
  154.  
  155. setInterval(test, 200)
  156. } else {
  157.  
  158. WebSocket.prototype._send = WebSocket.prototype.send
  159.  
  160. WebSocket.prototype.send = function(data) {
  161. var self = this;
  162.  
  163. this._send(data);
  164. var msg = new DataView(data);
  165. if (msg.byteLength === 21) { // Most clones
  166. if (msg.getInt8(0, true) === 16) {
  167.  
  168. callback(msg.getFloat64(1, true), msg.getFloat64(9, true), self.url, window.location.origin);
  169. }
  170. }
  171. if (msg.byteLength === 13) {
  172. if (msg.getUint8(0, true) === 16) {
  173.  
  174.  
  175. callback(msg.getInt32(1, true), msg.getInt32(5, true), self.url, window.location.origin);
  176. }
  177. }
  178.  
  179. if (msg.byteLength === 5 || msg.byteLength < 4) {
  180. if (msg.getUint8(0, true) === 16) {
  181.  
  182. callback(msg.getInt16(1, true), msg.getInt16(3, true), self.url, window.location.origin);
  183. }
  184. }
  185. };
  186. }
  187. // else {
  188.  
  189. // var x = WebSocket.prototype.send;
  190.  
  191. // WebSocket.prototype.send = function(a) {
  192.  
  193. // var pack = new Uint8Array(a);
  194. // var url = this.url;
  195.  
  196. // callback(pack, pack, url, window.location.origin)
  197.  
  198. // x.apply(this, arguments);
  199. // }
  200. // }
  201. },
  202.  
  203. sendData: function(socket) {
  204.  
  205. var data = {
  206.  
  207. mouse_x: fe.mouse_x,
  208. mouse_y: fe.mouse_y,
  209. server: fe.server,
  210. origin: fe.origin,
  211. extra: fe.extra
  212. };
  213.  
  214. socket.emit('data', data);
  215. },
  216.  
  217. sendSplit: function(socket) {
  218.  
  219. socket.emit('action', "split");
  220. },
  221.  
  222. sendEject: function(socket) {
  223.  
  224. socket.emit('action', "eject");
  225. },
  226.  
  227. sendAi_on: function(socket) {
  228.  
  229. socket.emit('action', "ai_on");
  230. },
  231.  
  232. sendAi_off: function(socket) {
  233.  
  234. socket.emit('action', "ai_off");
  235. },
  236.  
  237. sendSpam: function(socket){
  238.  
  239. var msg = prompt("Chat spam","");
  240. socket.emit('action', "spam", msg);
  241. }
  242. };
  243.  
  244. if (fe.getUuid() !== null) {
  245.  
  246. fe.uuid = fe.getUuid();
  247. }
  248.  
  249. fe.getMouse(function(x, y, ip, origin) {
  250.  
  251. fe.mouse_x = x;
  252. fe.mouse_y = y;
  253. fe.server = ip;
  254. fe.origin = origin;
  255. });
  256.  
  257. socket.on("request_uuid", function() {
  258.  
  259. socket.emit('request_uuid', fe.uuid);
  260. });
  261.  
  262. setInterval(() => {
  263.  
  264. fe.sendData(socket);
  265. }, 150);
  266.  
  267. window.fe = fe;
  268.  
  269. document.addEventListener('keydown', function(e) {
  270. if (e.key === "e") {
  271.  
  272. fe.sendSplit(socket);
  273. }
  274.  
  275. if (e.key === "r") {
  276.  
  277. fe.sendEject(socket);
  278. }
  279.  
  280.  
  281. if (e.key === "p") {
  282.  
  283. fe.sendAi_on(socket);
  284. }
  285.  
  286. if (e.key === "c") {
  287.  
  288. fe.sendAi_off(socket);
  289. }
  290.  
  291. if (e.key === "z") {
  292.  
  293. fe.sendSpam(socket);
  294. }
  295.  
  296. });
  297.  
  298. var info = {
  299. bot_a: document.getElementById("bot_a"),
  300. bot_t: document.getElementById("bot_t"),
  301. };
  302.  
  303. socket.on('info', function(data) {
  304.  
  305. info.bot_a.innerHTML = data.bot_a;
  306. info.bot_t.innerHTML = (data.bot_t / 60).toString().substring(0, 2) + " (min)";
  307. });
  308.  
  309. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement