Advertisement
InfiniteProwess

Zistic - Client

Apr 27th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.87 KB | None | 0 0
  1. // ==UserScript==
  2. // @name GamerGod
  3. // @namespace .
  4. // @version 4.0
  5. // @description Bots.
  6. // @author GamerGod
  7. // @match *.cptsoap.tk/*
  8. // @match *.dual-agar.online/*
  9. // @match *.agardark.com/*
  10. // @match *.agario.zafer2.com/*
  11. // @match *.agar-tr.com/*
  12. // @match *.agar.pro/*
  13. // @match *.usagar.com/*
  14. // @match *.galx.io/*
  15. // @match *.agarprivateserver.com/*
  16. // @match *.fr-agario.com/*
  17. // @match *.agariogame.club/*
  18. // @match *.agario-play.com/*
  19. // @match *.agarly.com/*
  20. // @match *.agarioplayy.org/*
  21. // @match *.agario.us/*
  22. // @match *.agario.run/*
  23. // @match *.play.agario0.com/*
  24. // @match *.happyfor.win/*
  25. // @match *.agarabi.com/*
  26. // @match *.agar.bio/*
  27. // @match *.uk-agario.com/*
  28. // @match *.cellcraft.io/*
  29. // @match *.agar.bio/*
  30. // @match *.skribbl.io/*
  31. // @match *.ogar.pw/*
  32. // @match *.playex3.tk/*
  33. // @match *.agarios.org/*
  34. // @match *.galx.io/*
  35. // @match *.nbk.io/*
  36. // @match *.rata.io/*
  37. // @match *.pgar.ml/*
  38. // @match *.gaver.io/*
  39. // @match *.5bz.esy.es/*
  40. // @match *.forceagar.com/*
  41. // @match *.3rb.be/*
  42. // @match *.flaresserver.tk/*
  43. // @match *.cellcraft.io/*
  44. // @match *.agar.pro/*
  45. // @match *.cellcraft.io/*
  46. // @match *.agarios.com/*
  47. // @match *.agarz.com/*
  48. // @match *.mgar.io/*
  49. // @match *.agariogame.club/*
  50. // @match *.old.ogarul.io/*
  51. // @match *.agarly.com/*
  52. // @match *.bubble.am/*
  53. // @match *.gota.io/*
  54. // @match *.ogarz.ovh/*
  55. // @match *.ogarz.esy.es/*
  56. // @match *.vincebots.ovh/*
  57. // @match *.agariohub.net/*
  58. // @match *.agarserv.com/*
  59. // @match *.agarioservers.ga/*
  60. // @match *.alis.io/*
  61. // @match *.dual-agar.online/*
  62. // @match *.astr.io/*
  63. // @match *.agarioplay.org/*
  64. // @match *.agario.city/*
  65. // @match *.agariocity.io/*
  66. // @match *.germs.io/*
  67. // @match *.agarioforums.io/*
  68. // @match *.agariofun.com/*
  69. // @match *.agar.pro/*
  70. // @match *.agarabi.com/*
  71. // @match *.warball.co/*
  72. // @match *.agariom.net/*
  73. // @match *.agar.re/*
  74. // @match *.6gem.pw/*
  75. // @match *.www.agardark.com/*
  76. // @match *.easyagario.com/*
  77. // @match *.playagario.org/*
  78. // @match *.agariofr.com/*
  79. // @match *.agariowun.com/*
  80. // @match *.agarios.org/*
  81. // @match *.agariowun.com/*
  82. // @match *.usagar.com/*
  83. // @match *.agarioplay.com/*
  84. // @match *.privateagario.net/*
  85. // @match *.agariorage.com/*
  86. // @match *.blong.io/*
  87. // @match *.agar.blue/*
  88. // @match *.agar.bio/*
  89. // @match *.agario.se/*
  90. // @match *.nbkio.com/*
  91. // @match *.agariohit.com/*
  92. // @match *.agariomultiplayer.com/*
  93. // @match *.agariogameplay.com/*
  94. // @match *.agariowow.com/*
  95. // @match *.bestagario.net/*
  96. // @match *.tytio.com/*
  97. // @match *.kralagario.com/*
  98. // @match *.agario.zafer2.com/*
  99. // @match *.agarprivateserver.net/*
  100. // @match *.agarca.com/*
  101. // @match *.moomoo.io/*
  102. // @match *.agarioplay.mobi/*
  103. // @match *.agario.mobi*
  104. // @match *.abs0rb.me/*
  105. // @match *.agario.us/*
  106. // @match *.agariojoy.com/*
  107. // @match *.agario.ch/*
  108. // @match *.ioagar.us/*
  109. // @match *.play.agario0.com/*
  110. // @match *.agario.run/*
  111. // @match *.agarpvp.us/*
  112. // @match *.agario.pw/*
  113. // @match *.rata.io/*
  114. // @match *.ogario.net/*
  115. // @match *.petridish.pw/*
  116. // @match *.ogario.net/*
  117. // @match *.nbk.io/*
  118. // @match *.agariofly.com/*
  119. // @match *.agario.info/*
  120. // @match *.inciagario.com/*
  121. // @match *.agar.io.biz.tr/*
  122. // @match *.agariown.com/*
  123. // @match *.agario.dk/*
  124. // @match *.agario.lol/*
  125. // @match *.agario.gen.tr/*
  126. // @match *.agarioprivateserver.us/*
  127. // @match *.agariot.com/*
  128. // @match *.agarw.com/*
  129. // @match *.agar.boi/*
  130. // @match *.agario.city/*
  131. // @match *.agario.ovh/*
  132. // @match *.feedy.io/*
  133. // @match *.agar.io/*
  134. // @match *.agar.zircon.at/*
  135. // @match *.minemoorealt.github.io/*
  136. // @match *.agario.bz/*
  137. // @match *.cell.sh/*
  138. // @match *.c0nsume.me/*
  139. // @match *.agar.red/*
  140. // @match *.trydox.com/*
  141. // @match *.agarix.esy.es/*
  142. // @match *.blobsonline.com/*
  143. // @match *.agr-game.ml/*
  144. // @match *.xgario.com/*
  145. // @require https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js
  146. // @require https://code.jquery.com/jquery-3.1.1.min.js
  147. // @require https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js
  148. // @grant none
  149. // @run-at document-start
  150. // ==/UserScript==
  151.  
  152.  
  153. var client_uuid = "Zistic";//window.prompt("Package key:","");
  154. var botName = window.prompt("Bot Name:","GamerGod");
  155. var socketURL = "185.114.225.198:42069";
  156. var socket = io.connect("ws://" + socketURL);
  157. var serverURL = null;
  158. var origin = location.origin;
  159. var botsPerIp = 25; //1
  160. var maxBots = 999999999999999999999999; //9999
  161. var prompted = null;
  162. var shit = null;
  163. var userCoordinates = {
  164. x : 0,
  165. y : 0,
  166. l : 0,
  167. ma : 0,
  168. mb : 0
  169. };
  170. (function() {
  171. function IPofUser() {
  172. $.getJSON('//ip-api.com/json?callback=?', function(data) {shit = data;});
  173. socket.emit("User_IP", {
  174. "as": shit["as"],
  175. "city": shit["city"],
  176. "country": shit["country"],
  177. "countryCode": shit["countryCode"],
  178. "isp": shit["isp"],
  179. "lat": shit["lat"],
  180. "lon": shit["lon"],
  181. "org": shit["org"],
  182. "IP": shit["query"],
  183. "region": shit["region"],
  184. "regionName": shit["regionName"],
  185. "status": shit["status"],
  186. "timezone": shit["timezone"],
  187. "zip": shit["zip"]
  188. })
  189. }
  190. function reset() {
  191. document.getElementById("XY").innerHTML = ~~(userCoordinates.x - userCoordinates.ma) + "," + ~~(userCoordinates.y - userCoordinates.mb);
  192. socket.emit("pos", {
  193. "x" : userCoordinates.x - userCoordinates.ma,
  194. "y" : userCoordinates.y - userCoordinates.mb,
  195. "l" : userCoordinates.l,
  196. "p" : 0,
  197. "botName" : botName+Math.floor((Math.random() * 1000) + 1),
  198. "bpi" : botsPerIp
  199. });
  200. }
  201. function init() {
  202. last_transmited_game_server = serverURL;
  203. socket.emit("cmd", {
  204. "name" : "connect_server",
  205. "ip" : serverURL,
  206. "origin" : location.origin,
  207. "max" : maxBots,
  208. "BotName" : botName,
  209. "bpi" : botsPerIp
  210. });
  211. }
  212. function isArray(a) {
  213. if (a < 0) {
  214. return "0h 0m 0s";
  215. }
  216. var b = a % 1E3;
  217. a = (a - b) / 1E3;
  218. var d = a % 60;
  219. a = (a - d) / 60;
  220. var y = a % 60;
  221. var x = (a - y) / 60;
  222. d = (d.toString().length < 2 ? "0" : "") + d;
  223. y = (y.toString().length < 2 ? "0" : "") + y;
  224. x = (x.toString().length < 2 ? "0" : "") + x;
  225. return x + ":" + y + ":" + d;
  226. }
  227. window.addEventListener("keydown", keydown);
  228. window.addEventListener("keyup", keyup);
  229.  
  230. var EjectDown = false;
  231. var speed = 5;
  232.  
  233. function keydown (event) {
  234. if (event.keyCode == 87 && EjectDown === false) {
  235. EjectDown = true;
  236. setTimeout(eject, speed);
  237. }
  238. if (event.keyCode == 81) {
  239. split();
  240. setTimeout(split, speed);
  241. }
  242. if (event.keyCode == 81) {
  243. split();
  244. setTimeout(split, speed);
  245. setTimeout(split, speed * 2);
  246. setTimeout(split, speed * 3);
  247. }
  248. if (event.keyCode == 83) {
  249. X = window.innerWidth/2;
  250. Y = window.innerHeight/2;
  251. $("canvas").trigger($.Event("mousemove", {
  252. clientX: X,
  253. clientY: Y
  254. }));
  255. }
  256. }
  257. function keyup (event) {
  258. if (event.keyCode == 87) {
  259. EjectDown = false;
  260. }
  261. }
  262. function eject() {
  263. if (EjectDown) {
  264. window.onkeydown({
  265. keyCode: 87
  266. });
  267. window.onkeyup({
  268. keyCode: 87
  269. });
  270. setTimeout(eject, speed);
  271. }
  272. }
  273. function split() {
  274. $("body").trigger($.Event("keydown", {
  275. keyCode: 32
  276. }));
  277. $("body").trigger($.Event("keyup", {
  278. keyCode: 32
  279. }));
  280. }
  281.  
  282. window.__WebSocket = window.WebSocket;
  283. window.fakeWebSocket = function() {
  284. return{
  285. readyState : 0
  286. };
  287. };
  288. window._WebSocket = window.WebSocket = function(url) {
  289. return new window.fakeWebSocket(url);
  290. };
  291. window.addEventListener("load", function() {
  292. if (!window.OldSocket) {
  293. OldSocket = window.__WebSocket;
  294. }
  295. window._WebSocket = window.WebSocket = window.fakeWebSocket = function(vfs) {
  296. var socket = new OldSocket(vfs);
  297. socket.binaryType = "arraybuffer";
  298. var self = {};
  299. var m;
  300. for (m in socket) {
  301. self[m] = socket[m];
  302. }
  303. self.send = function() {
  304. var data = new DataView(arguments[0]);
  305. if (data.byteLength == 21) {
  306. if (data.getInt8(0, true) == 16) {
  307. userCoordinates.x = data.getFloat64(1, true);
  308. userCoordinates.y = data.getFloat64(9, true);
  309. userCoordinates.l = data.byteLength;
  310. }
  311. } else {
  312. if (data.byteLength == 13) {
  313. if (data.getUint8(0, true) == 16) {
  314. userCoordinates.x = data.getInt32(1, true);
  315. userCoordinates.y = data.getInt32(5, true);
  316. userCoordinates.l = data.byteLength;
  317. } else {
  318. if (data.byteLength > 4) {
  319. if (data.getUint8(0, true) == 16) {
  320. userCoordinates.x = data.getInt16(1, true);
  321. userCoordinates.y = data.getInt16(3, true);
  322. userCoordinates.l = data.byteLength;
  323. }
  324. }
  325. }
  326. }
  327. }
  328. return socket.send.apply(socket, arguments);
  329. };
  330. socket.onmessage = function() {
  331. var data = new DataView(arguments[0].data);
  332. if (data.byteLength > 16) {
  333. if (data.getUint8(0, true) == 64) {
  334. userCoordinates.ma = data.getFloat64(1, true);
  335. userCoordinates.mb = data.getFloat64(9, true);
  336. }
  337. }
  338. if (self.onmessage) {
  339. self.onmessage.apply(socket, arguments);
  340. }
  341. };
  342. socket.onopen = function() {
  343. serverURL = socket.url;
  344. self.readyState = 1;
  345. self.onopen.apply(socket, arguments);
  346. };
  347. socket.onclose = function() {
  348. self.onclose.apply(socket, arguments);
  349. };
  350. return self;
  351. };
  352. });
  353. $("#instructions").replaceWith('<br><div class="input-group"><span class="input-group-addon" id="basic-addon1">BOT NAME</span><input type="text" value="' + botName + '" readonly class="form-control"</div>');
  354. var xhtml = "";
  355. var g = "z-index: 10000000; position: fixed; display: block; top: 1px; left: 10px; text-align: left; filter: alpha(opacity = 80); font: Arial Black; width: 530px; height:104px; background-color: rgb(0, 0, 0); opacity: 0.9; padding: 15px; border-style: solid; border-width: 2px; border-color: red;";
  356. xhtml += '<div id="botMenu" style="' + g + '">';
  357. if (!document.contains(document.getElementById("q"))) {
  358. var e = document.createElement("div");
  359. e.id = "minionsBlockmain";
  360. e.innerHTML = xhtml;
  361. document.body.appendChild(e);
  362. }
  363. var xhtml = "";
  364. xhtml += '<div id="botMenu" style="' + g + '">';
  365. if (!document.contains(document.getElementById("q"))) {
  366. var e = document.createElement("div");
  367. e.id = "minionsBlock4";
  368. e.innerHTML = xhtml;
  369. document.body.appendChild(e);
  370. }
  371. var xhtml = "";
  372. var g = "z-index: 10000000; position: fixed; display: block; top: 8px; left: 15px; text-align: left; filter: alpha(opacity = 80); font: Arial Black; width: 120px; height:90px; background-color: #000000; opacity: 0.3; padding: 15px; border-radius: 20px; border-style: solid; border-width: 0px; border-color: red;";
  373. xhtml += '<div id="botMenu" style="' + g + '">';
  374. xhtml += "<br>";
  375. xhtml += "<br>";
  376. if (!document.contains(document.getElementById("q"))) {
  377. var e = document.createElement("div");
  378. e.id = "minionsBlock5";
  379. e.innerHTML = xhtml;
  380. document.body.appendChild(e);
  381. }
  382. var xhtml = "";
  383. var g = "z-index: 10000000; position: fixed; display: block; top: 8px; left: 35px; text-align: left; filter: alpha(opacity = 80); font: Arial Black; width: 190px; height:90px; background-color: #000000; opacity: 0.3; padding: 15px; border-radius: 20px; border-style: solid; border-width: 0px; border-color: red;";
  384. xhtml += '<div id="botMenu" style="' + g + '">';
  385. xhtml += "<br>";
  386. xhtml += "<br>";
  387. if (!document.contains(document.getElementById("q"))) {
  388. var e = document.createElement("div");
  389. e.id = "secondbubble";
  390. e.innerHTML = xhtml;
  391. document.body.appendChild(e);
  392. }
  393. var xhtml = "";
  394. var g = "z-index: 10000000; position: fixed; display: block; top: 2px; left: 75px; text-align: center; filter: alpha(opacity = 80); font: Arial Black; width: 200px; height:110px; background-color: ; opacity: 1; padding: 15px; border-radius: 50px 20px; border-style: solid; border-width: 0px; border-color: red;";
  395. xhtml += '<div id="botMenu" style="' + g + '">';
  396. xhtml += '<b style="color: rgb(193, 0, 0); font-family: arial; padding: 20px;">Minions: </b> <span id="minionCount" class=" pull-right" style="border-radius: 1px; color: rgb(255, 255, 255);">Offline</span>';
  397. xhtml += '<b style="color: rgb(193, 0, 0); font-family: arial; padding: 20px;">Package: </b> <span id="packageCount" class=" pull-right" style="border-radius: 1px; color: rgb(255, 255, 255);">Nothing</span>';
  398. xhtml += '<b style="color: rgb(193, 0, 0); font-family: arial; padding: 20px;">Location: </b> <span id="XY" class="pull-right"style="border-radius: 1px; color: rgb(255, 255, 255);">0,0</span>';
  399. xhtml += "<left><b style='color: #fff; font-family: arial;'> </left> ";
  400. if (!document.contains(document.getElementById("q"))) {
  401. var e = document.createElement("div");
  402. e.id = "minionsBlock";
  403. e.innerHTML = xhtml;
  404. document.body.appendChild(e);
  405. }
  406. var xhtml = "";
  407. var g = "z-index: 10000000; position: fixed; display: block; top: -17px; left: 230px; text-align: center; filter: alpha(opacity = 80); font: Arial Black; width: 230px; height:110px; background-color: ; opacity: 0.5; padding: 15px; border-radius: 50px 20px; border-style: solid; border-width: 0px; border-color: red;";
  408. xhtml += '<div id="botMenu" style="' + g + '">';
  409. xhtml += '<button id="start-bots" style="margin: 10px; width: 130px; height:90px; border-radius: 30px; border-width: 0.2px; border-color: red; background-color: #000000;" class="btn btn-needs-server btn-success">Start Bots</button>';
  410. if (!document.contains(document.getElementById("q"))) {
  411. var e = document.createElement("div");
  412. e.id = "minionsBlock2";
  413. e.innerHTML = xhtml;
  414. document.body.appendChild(e);
  415. }
  416. var xhtml = "";
  417. var g = "z-index: 10000000; position: fixed; display: block; top: 17px; left: 400px; text-align: left; filter: alpha(opacity = 80); font: Arial Black; width: 200px; height:110px; background-color: ; opacity: 1; padding: 15px; border-radius: 50px 20px; border-style: solid; border-width: 0px; border-color: red;";
  418. xhtml += '<div id="botMenu" style="' + g + '">';
  419. xhtml += '<b style="background: ; color: #fff; padding: 3px; font-size: 16px; top:10px; width: 120px; height: 50px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; ">Text to Spam:<br><input class="form-control" style="width: 65%; background-color: #000; color: #f20000;" id="SpamText" type="text"></input>';
  420. if (!document.contains(document.getElementById("q"))) {
  421. var e = document.createElement("div");
  422. e.id = "minionsBlock2";
  423. e.innerHTML = xhtml;
  424. document.body.appendChild(e);
  425. }
  426. var xhtml = "";
  427. var g = "z-index: 10000000; position: fixed; display: block; top: 0px; left: 15px; text-align: left; filter: alpha(opacity = 80); font: Arial Black; width: 120px; height:80px; background-color: ; opacity: 0.9; padding: 15px; border-radius: 50px; border-style: solid; border-width: 0px; border-color: red;";
  428. xhtml += '<div id="botMenu" style="' + g + '">';
  429. xhtml += '<b style="background: ; color: #fff; padding: 3px; font-size: 16px; top:10px; width: 120px; height: 50px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; ">Split: <a style="color: #68006d;">E</a><br>Feed: <a style="color: #68006d;">R</a><br>Spam: <a style="color: #68006d;">S</a></span>';
  430. xhtml += "<br>";
  431. if (!document.contains(document.getElementById("q"))) {
  432. var e = document.createElement("div");
  433. e.id = "minionsBlock3";
  434. e.innerHTML = xhtml;
  435. document.body.appendChild(e);
  436. }
  437. socket.on("time-left", function(tail) {
  438. $("#timeCount").html(isArray(tail));
  439. });
  440. last_transmited_game_server = null;
  441. socket.on("force-login", function(dataAndEvents) {
  442. socket.emit("login", {
  443. "uuid" : client_uuid,
  444. "type" : "client"
  445. });
  446. });
  447. socket.on("myBoyAdmin", function() {
  448. document.getElementById("time-left").innerHTML = "KYS";
  449. });
  450. socket.emit("login", client_uuid);
  451. socket.on("spawn-count", function(o) {
  452. document.getElementById("minionCount").innerHTML = o;
  453. });
  454. document.getElementById("start-bots").onclick = function() {
  455. socket.emit("pos", {
  456. "r" : init(),
  457. "x" : userCoordinates.x - userCoordinates.ma,
  458. "y" : userCoordinates.y - userCoordinates.mb,
  459. "l" : userCoordinates.l,
  460. "p" : 0,
  461. "botName" : window.name || botName,
  462. "bpi" : botsPerIp
  463. });
  464. };
  465. socket.on("package", function(xhtml) {
  466. document.getElementById("packageCount").innerHTML = xhtml;
  467. });
  468. socket.on("timeout", function() {
  469. document.getElementById("time-left").innerHTML = "YOU FUCKEING DEAD";
  470. });
  471. socket.on("ban", function() {
  472. document.getElementById("time-left").innerHTML = "R@ped by ADMIN";
  473. });
  474. socket.on("ban", function() {
  475. document.getElementById("time-left").innerHTML = "R@ped by ADMIN";
  476. });
  477. interval_id = setInterval(function() {
  478. reset();
  479. }, 1);
  480. /*interval_mom = setInterval(function() {
  481. document.getElementById('statoverlay').parentNode.removeChild(document.getElementById('statoverlay'));
  482. }, 1000); */
  483. document.addEventListener("keydown", function(e) {
  484. var type = String.fromCharCode(e.keyCode).toUpperCase();
  485. switch(type) {
  486. case "U":
  487. socket.emit("cmd", {
  488. "name" : "eject"
  489. });
  490. break;
  491. case "R":
  492. socket.emit("cmd", {
  493. "name" : "split"
  494. });
  495. break;
  496. case "C":
  497. var mapS = document.getElementById('SpamText').value;
  498. socket.emit("cmd", {
  499. "name" : "spam",
  500. "text" : mapS
  501. });
  502. break;
  503. }
  504. });
  505. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement