Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.00 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Prox Client v1- Let's Crash Gota,CellCraft,Dual-Agar
  3. // @namespace Beta!@!
  4. // @version 3.0
  5. // @description Private Bots
  6. // @author FreeTzYT
  7. // @match *.dual-agar.me/*
  8. // @match *.gkclan.me/*
  9. // @match *.play.agario0.com/*
  10. // @match http://agariospielen.org/*
  11. // @match http://tytio.com/*
  12. // @match http://agar.red/*
  13. // @match http://cell.sh/*
  14. // @match http://ogarz.ovh/*
  15. // @match http://gkclan.servegame.com/*
  16. // @match http://agargames.org/*
  17. // @match *.gkclan.me/*
  18. // @match http://agario.run/*
  19. // @match *.gaver.io/*
  20. // @match http://ft-bots.tk/*
  21. // @match http://99.k.vu/*
  22. // @match http://xbots.io/web/*
  23. // @match *.gkclan.tk/*
  24. // @match http://agar-tr.com/*
  25. // @match http://ugar.tk/*
  26. // @match http://ugar.pw/*
  27. // @match http://gota.io/web/*
  28. // @match http://nbk.io/*
  29. // @match http://agar.gr.sa/*
  30. // @match http://astr.io/*
  31. // @match http://mobilemoti.webcrow.jp/*
  32. // @match http://agariorage.com/*
  33. // @match http://agarioforums.io/*
  34. // @match http://abs0rb.me/*
  35. // @match http://ogar.mivabe.nl/*
  36. // @match http://agario.metin2force.com/*
  37. // @match http://www.agarpvp.net/*
  38. // @match http://old.ogarul.io/?ip=27.254.60.114:400
  39. // @match http://cellcraft.io/*
  40. // @match http://www.agario.press/*
  41. // @match http://agarfunny.com/*
  42. // @match http://agariowun.com/*
  43. // @match http://www.agarly.com/*
  44. // @match http://agar.xyz/*
  45. // @match http://agariousa.com/*
  46. // @match http://agario.ogario.net/*
  47. // @match http://feedy.io/*
  48. // @match http://agarioxl.com/*
  49. // @match http://play.agario0.com/*
  50. // @match http://agar-game.com/*
  51. // @match http://biome3d.com/*
  52. // @match http://us4.biome3d.com/*
  53. // @match http://agarboom.com/*
  54. // @match http://www.agarp.me/*
  55. // @match http://agarp.us/*
  56. // @match http://gulps.io/*
  57. // @match http://happyfor.win/*
  58. // @match http://ogario.org/*
  59. // @match http://trydox.com/*
  60. // @match http://playagario.club/*
  61. // @match http://agarplay.tk/*
  62. // @match http://unnamedcell.com/*
  63. // @match http://botcell.ml/*
  64. // @match http://easyagario.com/*
  65. // @match http://old.ogarul.io/*
  66. // @match http://kodclan.net/*
  67. // @match http://agariohit.com/*
  68. // @match http://www.agarserv.com/*
  69. // @match http://agarup.us/*
  70. // @match http://flaresserver.tk/*
  71. // @match http://bhax.org/*
  72. // @match http://ogario.gq/*
  73. // @match http://Xgario.com/*
  74. // @match http://xgario.ml/*
  75. // @match http://minemoore.uk.to/*
  76. // @match http://154.16.127.140/agar/*
  77. // @match http://www.6gem.pw/*
  78. // @match http://playagario.org/*
  79. // @match http://fr.agarioplay.mobi/*
  80. // @match http://agarioplay.us/*
  81. // @match http://www.agariopvp.vip/
  82. // @match http://agareasy.com/*
  83. // @match http://3rb.be/
  84. // @match http://splitz.ga/*
  85. // @match http://agar.yt/*
  86. // @match http://vincebots.ovh/*
  87. // @match http://gota.io/web/*
  88. // @match http://agario.zafer2.com/*
  89. // @match http://forceagar.com/*
  90. // @match http://ogario.net/*
  91. // @match http://www.ogario.net/*
  92. // @match http://kingagario.com/*
  93. // @match http://dual-agar.online/*
  94. // @match http://ixagar.net/*
  95. // @match http://agar-network.com/*
  96. // @match http://agario.games/*
  97. // @match http://agariocity.io/*
  98. // @match http://agarport.com/*
  99. // @match http://agariott.com/*
  100. // @match http://en.agar.bio/*
  101. // @match http://sharkbite.club/*
  102. // @match http://agario.bz/*
  103. // @match http://agario.ch/*
  104. // @match http://rata.io/*
  105. // @match http://agarplay.tk/*
  106. // @match http://nbkio.com/*
  107. // @match http://www.uk-agario.com/*
  108. // @match http://ut-server.tk/*
  109. // @match http://agar.ovh/*
  110. // @match *.agar.cf/*
  111. // @match http://agariowow.com/*
  112. // @match http://playgr.win/*
  113. // @match http://mambaagario.esy.es/*
  114. // @match http://proagarbots.esy.es/*
  115. // @match http://shairplus.tk/*
  116. // @match http://mulp.io/*
  117. // @match http://wair.io/*
  118. // @match http://agarioplayy.org/*
  119. // @match http://agariocs.com/*
  120. // @match http://agario.net/*
  121. // @match http://agariopvt.com/*
  122. // @match http://freestyle-games.ml/*
  123. // @match http://agarix.xyz/*
  124. // @match http://mrjunior.esy.es/*
  125. // @match http://agar.biz/*
  126. // @match http://agario.biz.tr/*
  127. // @match http://agariomoddedserver.com/*
  128. // @match
  129. // @match
  130. // @match
  131. // @match
  132. // @match
  133. // @match
  134. // @match http://agario-play.com/*
  135. // @match http://newkakobots.byethost31.com/*
  136. // @match http://www.agariown.com/*
  137. // @match http://www.agarproject.org/*
  138. // @match http://gkclan.servegame.com/*
  139. // @match http://agario.cab/*
  140. // @match http://agma.io/*
  141. // @match http://us.agar.bz/*
  142. // @match http://agariobox.com/*
  143. // @match http://agarvipbots.com/*
  144. // @match http://k-d.io/*
  145. // @match http://agario.pw/*
  146. // @match http://agr-game.ml/*
  147. // @match http://agariofun.com/*
  148. // @match http://bestagario.net/*
  149. // @match http://mgar.io/*
  150. // @match http://zgar.ml/*
  151. // @match http://zivosserver.tk/*
  152. // @match http://ogar.pw/*
  153. // @match http://agardark.com/*
  154. // @match http://alis.io/*
  155. // @match http://agario.city/*
  156. // @match http://agario.kim/*
  157. // @match http://agarpvp.in/*
  158. // @match http://www.agario.info/*
  159. // @match http://agar.io/*
  160. // @match http://www.inciagario.com/*
  161. // @match http://www.agardark.com/*
  162. // @match http://agarlove.com/*
  163. // @match http://agarios.com/*
  164. // @match http://www.galx.io/*
  165. // @match http://agr-game.ml/*
  166. // @match http://agarios.org/*
  167. // @match http://agarprivateserver.com/*
  168. // @match http://agariopvt.com/*
  169. // @match http://fr-agario.com/*
  170. // @match http://agarioprivate.eu/play/*
  171. // @match http://www.agariot.com/*
  172. // @match http://agariov.com/*
  173. // @match http://agarabi.com/*
  174. // @match http://germs.io/*
  175. // @match http://sakuramoti.webcrow.jp/*
  176. // @match http://c0nsume.me/*
  177. // @match http://agarioplay.biz/*
  178. // @match http://agarioplay.org/*
  179. // @match http://agar.bz/*
  180. // @match http://agar.pro/*
  181. // @match http://louisagar.pw/*
  182. // @match http://agarioparty.net/
  183. // @match http://myagario.com/*
  184. // @match http://easyagario.net/*
  185. // @match http://jumboagario.com/*
  186. // @match http://agario.mobi/*
  187. // @match http://agario.lol/*
  188. // @match http://agarca.com/*
  189. // @match http://agario.eu/*
  190. // @match http://agariorage.com/*
  191. // @match http://agariopvp.eu/play/*
  192. // @match http://www.agariomultiplayer.com/*
  193. // @match http://www.agariofly.com/*
  194. // @match http://en.agar.bio/*
  195. // @match http://agarix.esy.es/*
  196. // @match http://agariohub.net/*
  197. // @match http://agariogame.club/*
  198. // @match http://agario.gen.tr/*
  199. // @match http://agarly.com/*
  200. // @match http://agariomobile.net/*
  201. // @match http://usagar.com/*
  202. // @match http://agariomobile.net/*
  203. // @match http://agariohere.com/*
  204. // @match http://kakobots.esy.es/*
  205. // @match http://agario.us/*
  206. // @match http://agar.bio/*
  207. // @match http://nbk.io/*
  208. // @match *.agar.bz/*
  209. // @match http://dual-agar.online/*
  210. // @match http://ixagar.net/*
  211. // @match http://agarios.org/*
  212. // @match http://abs0rb.me/*
  213. // @match http://agar.io/*
  214. // @match http://agar.red/*
  215. // @match http://bomb.agar.bio/*
  216. // @match http://agar.ovh/*
  217. // @match http://99.k.vu/play/*
  218. // @match *.galx.io/*
  219. // @match http://sakuramoti.webcrow.jp/*
  220. // @match http://tytio.com/*
  221. // @match http://www.agarpvp.net/*
  222. // @match *.agariohub.net/*
  223. // @match http://agario.run/*
  224. // @match http://ogario.org/*
  225. // @match http://agarplay.tk/*
  226. // @match http://bhax.org/*
  227. // @match *.generals.io/*
  228. // @match http://mains.io/*
  229. // @match http://agariojo.com/*
  230. // @match http://agario.se/*
  231. // @match
  232. // @match
  233. // @match
  234. // @match
  235. // @match
  236. // @match
  237. // @match http://agariomodded.com/*
  238. // @match http://agario-here.com/*
  239. // @match http://agarport.com/*
  240. // @match http://xgario.ml/*
  241. // @match http://agar.pro/*
  242. // @match http://agario.mobi/*
  243. // @match http://agario.zafer2.com/*
  244. // @match http://agarios.org/*
  245. // @match http://ogarz.ovh/*
  246. // @match http://mgar.io/*
  247. // @match http://gaver.io/*
  248. // @match *.agar.red/*
  249. // @match http://agarios.org/*
  250. // @match http://agariocity.io/*
  251. // @match *.cellcraft.io/*
  252. // @match *.cellcraft.io/*
  253. // @match *.dual-agar.me/*
  254. // @match *.gota.io/*
  255. // @require https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js
  256. // @grant none
  257. // @run-at document-start
  258. // ==/UserScript==
  259.  
  260. function httpGet(theUrl) {
  261. var xmlHttp = new XMLHttpRequest();
  262. xmlHttp.open("GET", theUrl, false); // false for synchronous request
  263. xmlHttp.send(null);
  264. return xmlHttp.responseText;
  265. }
  266.  
  267. console.log('Connection Established');
  268. console.log('NeyBots Script Loaded ~');
  269.  
  270. fokseBotServer = 'LazardBots-olivierbates80096123.codeanyapp.com:8081'; // server connection
  271. setTimeout(function() {
  272. window.__WebSocket = window.WebSocket;
  273. window.fakeWebSocket = function(){
  274. return {
  275. readyState: 0
  276. };
  277. };
  278. window._WebSocket = window.WebSocket = function(ip){
  279. return new window.fakeWebSocket(ip);
  280. };
  281. window.__botclonsData = {};
  282. window.__botclonsData.mx = 0;
  283. window.__botclonsData.my = 0;
  284. window.__botclonsData.ml = 0;
  285. window.__botclonsData.ma = 0;
  286. window.__botclonsData.mb = 0;
  287. window.__botclonsData.wa = false;
  288. window.__botclonsData.sa = false;
  289. window.__botclonsData.w = null;
  290. window.__botclonsData.s = null;
  291. window.__botclonsData.aX = -1;
  292. window.__botclonsData.aY = -1;
  293. window.__botclonsData.p = 0;
  294. window.__botclonsData.q = false;
  295. window.__botclonsData.socketaddr = null;
  296. window.addEventListener("load",function(){
  297. // êîن èيوهêٍèيمà
  298. if(!window.OldSocket)
  299. OldSocket = window.__WebSocket;
  300. window._WebSocket = window.WebSocket = window.fakeWebSocket = function(ip){
  301. var ws = new OldSocket(ip);
  302. ws.binaryType="arraybuffer";
  303. var fakeWS = {};
  304. for(var i in ws)
  305. fakeWS[i] = ws[i];
  306. fakeWS.send = function(){
  307. //console.log("ïهًهُâàٍèëè ïهًهنà÷َ! " + arguments[0]);
  308. var msg = new DataView(arguments[0]);
  309. if ((msg.byteLength > 0) && (msg.getUint8(0) != 16)) {
  310. var f = "";
  311.  
  312. for (var i = 0; i < msg.byteLength; i++) {
  313. var a = msg.getUint8(i);
  314. f = f + a + " ";
  315. }
  316. console.log(f);
  317. } else {
  318. window.__botclonsData.mx = msg.getInt16(1, true);
  319. window.__botclonsData.my = msg.getInt16(3, true);
  320. window.__botclonsData.ml = msg.byteLength;
  321. }
  322.  
  323.  
  324. if(msg.byteLength==21){ // Most clones
  325. if(msg.getInt8(0, true) == 16){
  326. window.__botclonsData.mx = msg.getFloat64(1, true);
  327. window.__botclonsData.my = msg.getFloat64(9, true);
  328. window.__botclonsData.ml = msg.byteLength;
  329. }
  330. } else {
  331. if(msg.byteLength==13){ // Agar.re, agarioforums.io, alis.io
  332. if(msg.getUint8(0, true) == 16){
  333. window.__botclonsData.mx = msg.getInt32(1, true);
  334. window.__botclonsData.my = msg.getInt32(5, true);
  335. window.__botclonsData.ml = msg.byteLength;
  336. }else{
  337. if(msg.byteLength>4){ // gota.io
  338. /*if(msg.getUint8(0, true) == 16){
  339. window.__botclonsData.mx = msg.getInt16(1, true);
  340. window.__botclonsData.my = msg.getInt16(3, true);
  341. window.__botclonsData.ml = msg.byteLength;
  342. }*/
  343. }
  344. }
  345. }
  346. }
  347. return ws.send.apply(ws, arguments);
  348. };
  349. ws.onmessage = function(){
  350. //console.log("ïهًهُâàٍèëè ïًèهى! " + arguments[0].data);
  351. var msg = new DataView(arguments[0].data);
  352. if(msg.byteLength>16){ // Most clones
  353. if(msg.getUint8(0, true) == 64){
  354. window.__botclonsData.ma = msg.getFloat64(1, true);
  355. window.__botclonsData.mb = msg.getFloat64(9, true);
  356. }
  357. }
  358. if (fakeWS.onmessage && fakeWS.onmessage.apply(ws, arguments));
  359. };
  360. ws.onopen = function(){
  361. window.__botclonsData.socketaddr = ws.url;
  362. //console.log("ïهًهُâàٍèëè ïîنêë÷هيèه!");
  363. fakeWS.readyState = 1;
  364. fakeWS.onopen.apply(ws, arguments);
  365. };
  366. ws.onclose = function(){
  367. fakeWS.onclose.apply(ws, arguments);
  368. };
  369. return fakeWS;
  370. };
  371. if(location.origin=="http://dual-agar.me")connect("");
  372. });
  373. var real_minx = -7071;
  374. var real_miny = -7071;
  375. var real_maxx = 7071;
  376. var real_maxy = 7071;
  377. var lastsent = {
  378. minx: 0,
  379. miny: 0,
  380. maxx: 0,
  381. maxy: 0
  382. };
  383.  
  384. function valcompare(Y, Z) {
  385. return 0.01 > Y - Z && -0.01 < Y - Z;
  386. }
  387. var socket = io.connect('ws://'+ fokseBotServer);
  388. var canMove = true;
  389. var movetoMouse = true;
  390. var moveEvent = new Array(2);
  391. var canvas = document.getElementById("canvas");
  392. last_transmited_game_server = null;
  393. socket.on('force-login', function(data) {
  394. socket.emit("login", {
  395. "uuid": client_uuid,
  396. "type": "client"
  397. });
  398. transmit_game_server();
  399. });
  400.  
  401. $( "#canvas" ).after( "<div style='background-color: #000000; -moz-opacity: 0.4; -khtml-opacity: 0.4; opacity: 0.8; filter: alpha(opacity=40); zoom: 1;border: 2px solid rgb(66, 139, 202); border-radius: 12px; top: 200px; left: 10px; display: block; position: absolute; text-align: center; font-size: 15px; color: #ffffff; padding: 5px; font-family: Ubuntu;'> <div style='color:#ffffff; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><a>Prox-FeederClient</a></div> <div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>Bots: <a id='minionCount' > </a><br>Chat Spam: <a id='dfdghehfj'>C</a> </div> <div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'> </div> <div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>Target: <a id='Target' >0,0</a> </div> <div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'> </div> <div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'> </div>" );
  402. socket.on('spawn-count', function(data) {
  403. document.getElementById('minionCount').innerHTML = data;
  404. });
  405. var client_uuid = "GFB";
  406. /*if (client_uuid === null) {
  407. console.log("generating a uuid for this user");
  408. client_uuid = ""; var ranStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  409. for (var ii = 0; ii < 15; ii++) client_uuid += ranStr.charAt(Math.floor(Math.random() * ranStr.length));
  410. localStorage.setItem('client_uuid', client_uuid)
  411. }*/
  412. socket.emit("login", client_uuid);
  413. $("#instructions").replaceWith('<br><div class="input-group"><span class="input-group-addon" id="basic-addon1">UUID</span><input type="text" value="' + client_uuid + '" readonly class="form-control"</div>');
  414.  
  415. function isMe(cell) {
  416. for (var i = 0; i < window.agar.myCells.length; i++) {
  417. if (window.agar.myCells[i] == cell.id) {
  418. return true;
  419. }
  420. }
  421. return false;
  422. }
  423.  
  424. function getCell() {
  425. var me = [];
  426. for (var key in window.agar.allCells) {
  427. var cell = window.agar.allCells[key];
  428. if (isMe(cell)) {
  429. me.push(cell);
  430. }
  431. }
  432. return me[0];
  433. }
  434.  
  435. function emitPosition() {
  436. console.log(client_uuid);
  437. document.getElementById('Target').innerHTML=(~~(window.__botclonsData.mx-window.__botclonsData.ma))+","+(~~(window.__botclonsData.my-window.__botclonsData.mb));
  438. socket.emit("pos", {
  439. "x": window.__botclonsData.mx-window.__botclonsData.ma,
  440. "y": window.__botclonsData.my-window.__botclonsData.mb,
  441. "l": window.__botclonsData.ml,
  442. "p": window.__botclonsData.p,
  443. "c": window.__botclonsData.q
  444. });
  445. }
  446.  
  447. function toggleMovement() {
  448. canMove = !canMove;
  449. switch (canMove) {
  450. case true:
  451. canvas.onmousemove = moveEvent[0];
  452. moveEvent[0] = null;
  453. canvas.onmousedown = moveEvent[1];
  454. moveEvent[1] = null;
  455. break;
  456. case false:
  457. canvas.onmousemove({
  458. clientX: innerWidth / 2,
  459. clientY: innerHeight / 2
  460. });
  461. moveEvent[0] = canvas.onmousemove;
  462. canvas.onmousemove = null;
  463. moveEvent[1] = canvas.onmousedown;
  464. canvas.onmousedown = null;
  465. break;
  466. }
  467. }
  468. interval_id = setInterval(function() {
  469. emitPosition();
  470. }, 100);
  471. interval_id2 = setInterval(function() {
  472. transmit_game_server_if_changed();
  473. }, 5000);
  474. document.addEventListener('keydown', function(e) {
  475. var key = e.keyCode || e.which;
  476. switch (key) {
  477. case 16:
  478. if(!window.__botclonsData.sa){
  479. window.__botclonsData.sa=true;
  480. window.__botclonsData.s = setInterval(function() {
  481. $("body").trigger($.Event("keydown", {
  482. keyCode: 32
  483. }));
  484. $("body").trigger($.Event("keyup", {
  485. keyCode: 32
  486. }));
  487. }, 10);
  488. }
  489. break;
  490. case 87:
  491. if (!window.__botclonsData.wa) {
  492. window.__botclonsData.wa = true;
  493. window.__botclonsData.w = setInterval(function() {
  494. $("body").trigger($.Event("keydown", {
  495. keyCode: 87
  496. }));
  497. $("body").trigger($.Event("keyup", {
  498. keyCode: 87
  499. }));
  500. }, 10);
  501. }
  502. break;
  503. case 65:
  504. window.__botclonsData.p--;
  505. document.getElementById('ismoveToMouse').innerHTML = window.__botclonsData.p;
  506. break;
  507. case 67:
  508. window.__botclonsData.q=!window.__botclonsData.q;
  509. if(window.__botclonsData.q) { document.getElementById('dfdghehfj').innerHTML = "On"; } else { document.getElementById('dfdghehfj').innerHTML = "Off"; }
  510. break;
  511. case 69:
  512. socket.emit("cmd", {
  513. "name": "split"
  514. });
  515. break;
  516. case 82:
  517. socket.emit("cmd", {
  518. "name": "eject"
  519. });
  520. break;
  521. case 80:
  522. window.__botclonsData.p++;
  523. document.getElementById('ismoveToMouse').innerHTML = window.__botclonsData.p;
  524. break;
  525. }
  526. });
  527. document.addEventListener('keyup', function(e) {
  528. var key = e.keyCode || e.which;
  529. console.log(key);
  530. switch (key) {
  531. case 87:
  532. clearInterval(window.__botclonsData.w);
  533. window.__botclonsData.wa=false;
  534. break;
  535. case 16:
  536. clearInterval(window.__botclonsData.s);
  537. window.__botclonsData.sa=false;
  538. break;
  539. }
  540. });
  541.  
  542. function transmit_game_server_if_changed() {
  543. if (last_transmited_game_server != window.__botclonsData.socketaddr) {
  544. transmit_game_server();
  545. }
  546. }
  547.  
  548. function transmit_game_server() {
  549. last_transmited_game_server = window.__botclonsData.socketaddr;
  550. socket.emit("cmd", {
  551. "name": "connect_server",
  552. "ip": window.__botclonsData.socketaddr,
  553. "origin": location.origin
  554. });
  555. }
  556. var mouseX = 0;
  557. var mouseY = 0;
  558. $("body").mousemove(function(event) {
  559. mouseX = event.clientX;
  560. mouseY = event.clientY;
  561. });
  562. }, 1000); // Core Voltage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement