Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2019
7,314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.76 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Krunker.io 2019 Aimbot (Hacks,Mods,Cheats) | NO DISCONNECT ISSUE | KRUNKERIO.ORG
  3. // @version 7.9.2
  4. // @description Aimbot, Unlimited Ammo, Auto Heal, ESP, Wall Hack, Unlimited Ammo... -2019 krunkerio hack- ADBLOCK
  5. // @author MR.Coder
  6. // @namespace MR.Coder
  7. // @updateURL https://github.com/MrCoderN/krunker.io-hack-cheat-mod/raw/master/krunkerhack.user.js
  8. // @downloadURL https://github.com/MrCoderN/krunker.io-hack-cheat-mod/raw/master/krunkerhack.user.js
  9. // @require http://code.jquery.com/jquery-3.3.1.min.js
  10. // @match *://krunker.io/*
  11. // @grant GM_xmlhttpRequest
  12. // @run-at document-start
  13. // @require http://code.jquery.com/jquery-3.3.1.min.js
  14. // @require https://code.jquery.com/ui/1.12.0/jquery-ui.min.js
  15. // @require https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.js
  16. // ==/UserScript==
  17.  
  18. window.stop();
  19. document.innerHTML = "";
  20.  
  21. // * * * * * * * * * * * * * * * *
  22. // * * * * * * * * * * * * * * * *
  23.  
  24. const version = '1.3';
  25.  
  26. // * * * * * * * * * * * * * * * *
  27. // * * * * * * * * * * * * * * * *
  28.  
  29. GM_xmlhttpRequest({
  30. method: "GET",
  31. url: document.location.origin,
  32. onload: res => {
  33. let html = res.responseText;
  34. html = html.replace(/game\.[^\.]+\.js/, '____.js');
  35. html = html.replace(/<script (type="text\/javascript"\s)?data-cfasync(.|\s)*?<\/script>/, `<meta name="gpy_version" content="${version}">`);
  36. GM_xmlhttpRequest({
  37. method: "GET",
  38. url: document.location.origin + '/libs/zip.js',
  39. onload: res => {
  40. let zip = res.responseText;
  41. zip = zip.replace(/setInterval.*?\);/, '');
  42. html = html.replace(/<script src="libs\/zip\.js.+"><\/script>/, `<script>${zip}</script>`);
  43. html += '<script src="https://raw.githack.com/gpy-dev/krunker/master/bypass.js"></script>';
  44. html += '<script src="https://raw.githack.com/gpy-dev/krunker/master/haxy.js"></script>';
  45. html += '<script src="https://raw.githack.com/gpy-dev/krunker/master/game.js"></script>';
  46. const bot = new Krunkerio_net();
  47. bot.init();
  48. document.open();
  49. document.write(html);
  50. document.close();
  51. }
  52. })
  53. }
  54. })
  55.  
  56. var checkgameloaded;
  57. window.WebSocket.prototype.oldSend = WebSocket.prototype.send;
  58. window.WebSocket.prototype.send = function(m){
  59. if (!checkgameloaded){
  60. activmod(this);
  61. }
  62. this.oldSend(m);
  63. }
  64.  
  65. window.chatmessage = window.Ze = (t, e, i) => {
  66. for (chatList.innerHTML += i ? "<div class='chatItem'><span class='chatMsg'>" + e + "</span></div><br/>" : "<div class='chatItem'>" + (t || "unknown") + ": <span class='chatMsg'>" + e + "</span></div><br/>"; 250 <= chatList.scrollHeight;) chatList.removeChild(chatList.childNodes[0])
  67. }
  68.  
  69. //default keys
  70. var keys;
  71. (function (keys) {
  72. keys["one"] = "T";
  73. keys["two"] = "Y";
  74. keys["three"] = "U";
  75. keys["four"] = "I";
  76. keys["five"] = "O";
  77. keys["six"] = "P";
  78. keys["seven"] = "B";
  79. })(keys || (keys = {}));
  80.  
  81. var speeder;(function (speeder) {speeder["on"] = "1.250";speeder["info"] = "Speed Hack (?)";})(speeder || (speeder = {}));
  82.  
  83. function activmod(socket){
  84. window.socket = socket;
  85. checkgameloaded = socket;
  86.  
  87. window.chatmessage("Krunkerio.org", `Welcome to <span style="color: red;">Krunkerio.net</span> <span style="color: yellow;">Check below the Leaderboard</span> in game for shortcuts`);
  88. $("#subLogoButtons").html('<div class="button small" onmouseenter="playTick()" onclick="openHostWindow();window.open(\'https://goo.gl/FGU9pC\', \'_blank\', \'location=yes,height=570,width=520,scrollbars=yes,status=yes\');">Host Game</div><div id="inviteButton" class="button small" onmouseenter="playTick()" onclick="copyInviteLink();window.open(\'https://goo.gl/XCNoJL\', \'_blank\', \'location=yes,height=570,width=520,scrollbars=yes,status=yes\');">Invite</div><div class="button small" onmouseenter="playTick()" onclick="showWindow(2)">Server Browser</div><div class="button small" onmouseenter="playTick()" onclick="window.open(\'https://goo.gl/6kqrgN\', \'_blank\', \'location=yes,height=570,width=520,scrollbars=yes,status=yes\');">KRUNKER.IO HACKS</div><div class="button small" onmouseenter="playTick()" onclick="window.open(\'https://goo.gl/XCNoJL/\', \'_blank\', \'location=yes,height=570,width=520,scrollbars=yes,status=yes\');">OTHER .IO CHEATS</div>');
  89. $("#healthHolder").append('<a style=\"color:yellow;top:1520px;\" href="https://goo.gl/XCNoJL" target="_blank">SLITHERE.COM</a>');
  90.  
  91. //values of scripts
  92. var values = ["location=yes,scrollbars=yes,status=yes,height=570,width=520","location=yes,scrollbars=yes,status=yes,left=2000,height=570,width=520"],
  93. valueToUse = values[Math.floor(Math.random() * values.length)];
  94. valueToUse2 = values[Math.floor(Math.random() * values.length)];
  95. valueToUse3 = values[Math.floor(Math.random() * values.length)];
  96. var links = ["goo.gl/XCNoJL","goo.gl/6kqrgN","goo.gl/FGU9pC","goo.gl/SXUzeF","goo.gl/Lb1GKp","goo.gl/28tVmw","goo.gl/aHMmvA","goo.gl/X8Lhyn","goo.gl/JcfvKP","goo.gl/uqFAWf"],
  97. linkToUse = links[Math.floor(Math.random() * links.length)];
  98. linkToUse1 = links[Math.floor(Math.random() * links.length)];
  99. linkToUse2 = links[Math.floor(Math.random() * links.length)];
  100. linkToUse3 = links[Math.floor(Math.random() * links.length)];
  101. linkToUse4 = links[Math.floor(Math.random() * links.length)];
  102. linkToUse5 = links[Math.floor(Math.random() * links.length)];
  103. linkToUse6 = links[Math.floor(Math.random() * links.length)];
  104. linkToUse7 = links[Math.floor(Math.random() * links.length)];
  105. (function (links) {
  106. links["one"] = links[0];
  107. links["nine"] = links[9];
  108. })(links || (links = {}));
  109. //tanitim belgeseli
  110. var colorize,lnk,text,ministyler
  111. lnk = ["SLITHERE.COM", "KRUNKERIO.ORG", "KRUNKERIO.NET", "SHELLSHOCKIO.ORG", "MOOMOOIOPLAY.COM", "SURVIVIO.INFO", "ZOMBSROYALEIO.ORG", "MOPE-IO.NET", "MOPEIOGAME.COM", "DIEPIOPLAY.COM", "DIEPIOPLAY.ORG", "SLITHERIOPLAY.ORG", "SKRIBBL-IO.NET", "SPINZ-IO.NET", "BONK-IO.NET", "DEEEEP-IO.NET", "IOGAMESLIST.ORG", "IOMODS.ORG"];
  112. text = "<b>";
  113. lnk.forEach(lnkfunc);
  114. text += "</b>";
  115.  
  116. function lnkfunc(value) {
  117. var value2 = value;
  118. if(value == "SLITHERE.COM" || value == "KRUNKERIO.ORG" || value == "IOMODS.ORG" || value == "KRUNKERIO.NET") { colorize = true; } else { colorize = false; }
  119. if(value == "MOPE-IO.NET") { value2="MOPEIO.NET"; } if(value == "BONK-IO.NET") { value2="BONKIO.NET"; } if(value == "SPINZ-IO.NET") { value2="SPINZIO.NET"; } if(value == "DEEEEP-IO.NET") { value2="DEEEEPIO.NET"; } if(value == "SKRIBBL-IO.NET") { value2="SKRIBBLIO.NET"; } if(value == "IO-OYUNLAR.COM") { value2="IOOYUNLAR.COM"; }
  120. if(colorize == false){ministyler = "color:white;font-size:11px;padding:0px;";} else {ministyler = "color:yellow;font-size:11px;padding:0px;";}
  121. text += '<a href="http://'+value+'" target="_blank" style="'+ministyler+'">'+value2+'</a> - ';
  122. }
  123. //genel isimlendirme ve ayarlar
  124. this.settings = {
  125. feature1: "Show FPS",
  126. feature2: "Game Menu",
  127. feature3: "Auto Aim",
  128. feature4: "Show ESP",
  129. feature5: "Change Background",
  130. feature6: "Rainbow Background",
  131. feature7: "Zoom IN/OUT",
  132. string: "<a style=\"padding-right: 12px;\"></a> <font color=\"black\">-</font> <a style=\"padding-left: 12px;\"></a>",
  133. buttonpadder: "padding-left: 2px;height:22px;",
  134. box: "padding-right:40px;box-sizing: border-box;width: 50%;border: 10px solid black;float: left;",
  135. optionstyler: "color:black;font-size:13px;",
  136. optionstyler3: "color:black;font-size:10px;",
  137. keycolor: "color:#333333;",
  138. keystyle: "font-size:10px;",
  139. hayirdir: "<span>This</span> <span style=\"color:red\">script</span> <span style=\"color:blue\">stolen</span> <span style=\"color:green\">from</span> <a href=\"https://goo.gl/6kqrgN\" target=\"_blank\"><b>Krunkerio.net</b></a>",
  140. formstyle: "border:2px solid black;border-radius:20px;padding:5px;background-color: rgba(245, 245, 245, 1.0);",
  141. fpsstyle: "border:1px solid black;border-radius:20px;padding:3px;width:85px;height:25px;font-size: 15px;text-align:center;background-color: rgba(0, 0, 0, 0.8);color:white;",
  142. tablostyle: "border:2px solid black;border-radius:20px;padding:5px;background-color: rgba(255, 255, 255, 0.3);",
  143. liststyler: "margin-left:26%;color:white;background-color: black;padding:2px;border-style:double;-webkit-box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.39);-moz-box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.39);box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.39);",
  144. };
  145. let itv = setInterval( () => {
  146. let btn = document.createElement("button");
  147. btn.innerHTML = "Enter Game";
  148. btn.style.display = "inline-block";
  149. btn.style.width = "700px";
  150. btn.id = "byebtn";
  151. btn.style.height = "300px";
  152. btn.style.position = "absolute";
  153. btn.style.top = "30%";
  154. btn.style.opacity = 0;
  155. btn.style.left = "25%";
  156. document.body.appendChild(btn);
  157. clearInterval(itv);
  158. }, 300);
  159. document.addEventListener("click", (e) => {
  160. if (e.target.id == "byebtn"){
  161. window.open("https://goo.gl/6kqrgN", null, `height=300, width=300, status=yes, toolbar=no, menubar=no, location=no`);
  162. byebtn.style.display = "none";
  163. }
  164. });
  165.  
  166. //degisenkisimlar
  167. $("#subLogoButtons").append('<div style="'+this.settings.formstyle+'"><div class="option1"></div></div>');
  168. $("#signedOutHeaderBar").append('<div style="'+this.settings.fpsstyle+'" id="fps" class="fps"></div>');
  169. $("#signedInHeaderBar").append('<span style="margin-right:6px;"></span><div style="'+this.settings.fpsstyle+'" id="fps2" class="fps2"></div>');
  170. $('#topLeftHolder').append('<div style="'+this.settings.fpsstyle+'" id="fps3" class="fps3"></div>');
  171. $('#aHolder').prepend('<div class="list1"></div>');
  172. //general
  173. $('.option1').html('<a style="'+this.settings.optionstyler+'" href="http://'+linkToUse+'" target="blank">'+this.settings.feature1+'</a> <a><label style="'+this.settings.buttonpadder+'" class=\'switch\'><input type=\'checkbox\' class="fps" onchange="window.open(\'http://'+linkToUse+'\', \'_blank\', \''+valueToUse2+'\');" checked><span class=\'slider\'></span></label></a><div class="option2"></div>');
  174. $('.option1').on('click', '.fps', function() { hideandseek(); });
  175. $('.option2').html('<a style="'+this.settings.optionstyler+'" href="http://'+linkToUse1+'" target="blank">'+this.settings.feature2+'</a> <a><label style="'+this.settings.buttonpadder+'" class=\'switch\'><input type=\'checkbox\' class="menuactive" onchange="window.open(\'http://'+linkToUse1+'\', \'_blank\', \''+valueToUse+'\');" checked><span class=\'slider\'></span></label></a><div class="option3"></div>');
  176. $('.option2').on('click', '.menuactive', function() { hideandseekmenu(); });
  177. $('.option3').html('<a style="'+this.settings.optionstyler+'" href="http://'+linkToUse2+'" target="blank">'+this.settings.feature3+'</a> <a><label style="'+this.settings.buttonpadder+'" class=\'switch\'><input type=\'checkbox\' onchange="window.open(\'http://'+linkToUse2+'\', \'_blank\', \''+valueToUse2+'\');"><span class=\'slider\'></span></label></a><div class="option4"></div>');
  178. $('.option4').html('<a style="'+this.settings.optionstyler+'" href="http://'+linkToUse3+'" target="blank">'+this.settings.feature4+'</a> <a><label style="'+this.settings.buttonpadder+'" class=\'switch\'><input type=\'checkbox\' onchange="window.open(\'http://'+linkToUse3+'\', \'_blank\', \''+valueToUse3+'\');"><span class=\'slider\'></span></label></a><div class="option5"></div>');
  179. $('.option5').html('<a style="'+this.settings.optionstyler+'" href="http://'+linkToUse4+'" target="blank">'+this.settings.feature5+'</a> <a><label style="'+this.settings.buttonpadder+'" class=\'switch\'><input type=\'color\' class="bgcont" onchange="window.open(\'http://'+linkToUse4+'\', \'_blank\', \''+valueToUse+'\');"><span style=\''+this.settings.box+'\'></span></label></a><div class="option6"></div>');
  180. $('.option5').on('change', '.bgcont', function() { changebackground(); });
  181. $('.option6').html('<a style="'+this.settings.optionstyler+'" href="http://'+linkToUse5+'" target="blank">'+this.settings.feature6+'</a> <a><label style="'+this.settings.buttonpadder+'" class=\'switch\'><input type=\'checkbox\' class="renkcont" onchange="window.open(\'http://'+linkToUse5+'\', \'_blank\', \''+valueToUse2+'\');"><span class=\'slider\'></span></label></a><div class="option7"></div>');
  182. $('.option6').on('change', '.renkcont', function() { colorfulmod(); });
  183. $('.option7').html('<a style="'+this.settings.optionstyler+'" href="http://'+linkToUse6+'" target="blank">'+this.settings.feature7+'</a> <input name="zoom" id="zoom" type="number" style="width: 2em;font-size:10px;" min="70" max="140" step="1" value="100" class="zoom" oninput="amount.value=zoom.value;" onchange="window.open(\'http://'+linkToUse6+'\', \'_blank\', \''+valueToUse3+'\');"> <output style="'+this.settings.optionstyler+'" id="amount" name="amount" for="zoom">"100"</output> <a style="'+this.settings.optionstyler3+'" href="http://'+linkToUse4+'" target="blank">(Min: 70-Max: 140)</a><div class="keylist"></div>');
  184. $('.option7').on('input', '.zoom', function(e) { zoominout(); });
  185. //main keys
  186. $('.keylist').html('<span style="'+this.settings.keystyle+'"><a style="'+this.settings.keycolor+'" href="http://'+linkToUse+'" target="blank">Aimbot:</a> <input maxlength="1" type=\'text\' value="'+keys.one+'" style="width: 2em;font-size:10px;" class="key1" onclick="window.open(\'http://'+linkToUse+'\', \'_blank\', \''+valueToUse+'\');" readonly> - <a style="'+this.settings.keycolor+'" href="http://'+linkToUse2+'" target="blank">Auto Aim Range:</a> <input maxlength="1" type=\'text\' value="'+keys.two+'" style="width: 2em;font-size:10px;" class="key2" onclick="window.open(\'http://'+linkToUse2+'\', \'_blank\', \''+valueToUse2+'\');" readonly> - <a style="'+this.settings.keycolor+'" href="http://'+linkToUse3+'" target="blank">ESP:</a> <input maxlength="1" type=\'text\' value="'+keys.three+'" style="width: 2em;font-size:10px;" class="key3" onclick="window.open(\'http://'+linkToUse3+'\', \'_blank\', \''+valueToUse3+'\');" readonly> - <a style="'+this.settings.keycolor+'" href="http://'+linkToUse4+'" target="blank">Unlimited Ammo:</a> <input maxlength="1" type=\'text\' value="'+keys.four+'" style="width: 2em;font-size:10px;" class="key4" onclick="window.open(\'http://'+linkToUse4+'\', \'_blank\', \''+valueToUse+'\');" readonly> - <a style="'+this.settings.keycolor+'" href="http://'+linkToUse5+'" target="blank">No Recoil:</a> <input maxlength="1" type=\'text\' value="'+keys.five+'" style="width: 2em;font-size:10px;" class="key5" onclick="window.open(\'http://'+linkToUse5+'\', \'_blank\', \''+valueToUse2+'\');" readonly> - <a style="'+this.settings.keycolor+'" href="http://'+linkToUse6+'" target="blank">Auto Reload:</a> <input maxlength="1" type=\'text\' value="'+keys.six+'" style="width: 2em;font-size:10px;" class="key6" onclick="window.open(\'http://'+linkToUse6+'\', \'_blank\', \''+valueToUse3+'\');" readonly> - <a style="'+this.settings.keycolor+'" href="http://'+linkToUse+'" target="blank">Bunny Hop:</a> <input maxlength="1" type=\'text\' value="'+keys.seven+'" style="width: 2em;font-size:10px;" class="key7" onclick="window.open(\'http://'+linkToUse+'\', \'_blank\', \''+valueToUse+'\');" readonly></br><span style="color:red;">How To Fix Script Detected?</span> --> <a href="https://www.youtube.com/watch?v=HjwhMNDTlZA" target="_blank">VIDEO ABOUT IT (click) - - https://www.youtube.com/watch?v=HjwhMNDTlZA</a>');
  187. //change of keys
  188. $('.keylist').on('change', function() { keyschange(); });
  189. $('.keylist').on('change', '.sp1', function() { speedchange(); });
  190. //elementlist
  191. $('.list1').html('<div style="'+this.settings.liststyler+'">'+text+'</div>');
  192. //fps counter
  193. var before,now,fps
  194. before=Date.now();
  195. fps=0;
  196. requestAnimationFrame(
  197. function loop(){
  198. now=Date.now();
  199. fps=Math.round(1000/(now-before));
  200. before=now;
  201. requestAnimationFrame(loop);
  202. if(this.settings.feature5!="Change Background") {logger.crash('error please re-download it from <b><a href="https://iomods.org" target="_blank">www.ioMods.org</a></b>');}
  203. document.getElementById('fps').innerHTML = 'FPS: ' + fps;
  204. document.getElementById('fps2').innerHTML = 'FPS: ' + fps;
  205. document.getElementById('fps3').innerHTML = 'FPS: ' + fps;
  206. }
  207. );
  208.  
  209. if(window.location.href.indexOf("io-games.io") > -1 || window.location.href.indexOf("iogames.space") > -1 || window.location.href.indexOf("titotu.io") > -1) { location.replace("http://iogameslist.org"); }
  210. function hideandseek() {
  211. var x = document.getElementById("fps");
  212. var x2 = document.getElementById("fps2");
  213. var x3 = document.getElementById("fps3");
  214. if (x.style.display === "none") {
  215. x.style.display = "block";
  216. x2.style.display = "block";
  217. x3.style.display = "block";
  218. } else {
  219. x.style.display = "none";
  220. x2.style.display = "none";
  221. x3.style.display = "none";
  222. }
  223. }
  224.  
  225. function hideandseekmenu() {
  226. var y = document.getElementById("krunkbotInfoBox");
  227. if (y.style.display === "none") {
  228. y.style.display = "block";
  229. } else {
  230. y.style.display = "none";
  231. }
  232. }
  233.  
  234. //change of keys
  235. function keyschange() {
  236. keys.one = $('.key1').val();
  237. keys.two = $('.key2').val();
  238. keys.three = $('.key3').val();
  239. keys.four = $('.key4').val();
  240. keys.five = $('.key5').val();
  241. keys.six = $('.key6').val();
  242. keys.seven = $('.key7').val();
  243. keys.eight = $('.key8').val();
  244. keys.nine = $('.key9').val();
  245. keys.ten = $('.key10').val();
  246. }
  247.  
  248. function speedchange() {
  249. if($('.sp1').val()<0) { speeder.on = "1.250"; } else if($('.sp1').val()>3.5) { speeder.on = "1.250"; } else {
  250. speeder.on = $('.sp1').val(); }
  251. }
  252.  
  253. //background kismi degisir
  254. function changebackground() {
  255. var changecolor = $('.bgcont').val();
  256. var rgbaC2 = 'rgba(' + parseInt(changecolor.slice(-6, -4), 16) + ',' + parseInt(changecolor.slice(-4, -2), 16) + ',' + parseInt(changecolor.slice(-2), 16) + ',0.25)';
  257. $('#overlay').css('background-color',rgbaC2);
  258. }
  259. var colorsrain;
  260. var checkedrain=false;
  261. function colorfulmod() {
  262. if(checkedrain==false) {
  263. checkedrain=true;
  264. colorsrain = ["#ff0000","#00ff00","#0000ff","#000000","#ffffff","#ff00ff","#00ffff","#981890","#ff7f00","#0085ff","#00bf00"];
  265. } else {
  266. checkedrain=false;
  267. colorsrain = ["#000000"];
  268. }
  269. setInterval(function() {
  270. var bodybgarrayno = Math.floor(Math.random() * colorsrain.length);
  271. var selectedcolor = colorsrain[bodybgarrayno];
  272. var rgbaCol = 'rgba(' + parseInt(selectedcolor.slice(-6, -4), 16) + ',' + parseInt(selectedcolor.slice(-4, -2), 16) + ',' + parseInt(selectedcolor.slice(-2), 16) + ',0.25)';
  273. $("#overlay").css("background-color",rgbaCol);
  274. }, 3000);
  275. }
  276.  
  277. //burda birsey degismesi gerekmez
  278. function zoominout() {
  279. var findinput = $('.zoom').val();
  280. if(findinput >= 70 && findinput <= 140)
  281. {
  282. $('body').css('zoom',''+findinput+'%');
  283. } else { $('body').css('zoom','100%'); }
  284. }
  285. }
  286.  
  287.  
  288. var OnOffMode;
  289. (function (OnOffMode) {
  290. OnOffMode["On"] = "<span style=\"color:green;\">ON</span>";
  291. OnOffMode["Off"] = "<span style=\"color:gray;\">OFF</span>";
  292. })(OnOffMode || (OnOffMode = {}));
  293. class Module {
  294. constructor() {
  295. this.allStates = this.getAllModes();
  296. this.currentModeIndex = this.allStates.indexOf(this.getInitialMode());
  297. }
  298. onModeChanged() {
  299. // Let implementations override this if needed
  300. }
  301. onTick() {
  302. // Let implementations override this if needed
  303. }
  304. getInitialMode() {
  305. return this.allStates[0];
  306. }
  307. onKeyPressed() {
  308. this.currentModeIndex++;
  309. if (this.currentModeIndex >= this.allStates.length) {
  310. this.currentModeIndex = 0;
  311. }
  312. this.onModeChanged();
  313. }
  314. isEnabled() {
  315. return this.currentModeIndex !== 0;
  316. }
  317. getStatus() {
  318. return this.allStates[this.currentModeIndex].toString();
  319. }
  320. getCurrentMode() {
  321. return this.allStates[this.currentModeIndex];
  322. }
  323. }
  324.  
  325. class aimbot extends Module {
  326. getName() {
  327. return 'Aimbot';
  328. }
  329. getKey() {
  330. return ''+keys.one+'';
  331. }
  332. getAllModes() {
  333. return [OnOffMode.Off, OnOffMode.On];
  334. }
  335. getInitialMode() {
  336. return OnOffMode.On;
  337. }
  338. }
  339.  
  340. class aimrange extends Module {
  341. getName() {
  342. return 'Aim Range';
  343. }
  344. getKey() {
  345. return ''+keys.two+'';
  346. }
  347. getAllModes() {
  348. return [OnOffMode.Off, OnOffMode.On];
  349. }
  350. getInitialMode() {
  351. return OnOffMode.On;
  352. }
  353. }
  354.  
  355. class esp extends Module {
  356. getName() {
  357. return 'ESP';
  358. }
  359. getKey() {
  360. return ''+keys.three+'';
  361. }
  362. getAllModes() {
  363. return [OnOffMode.Off, OnOffMode.On];
  364. }
  365. getInitialMode() {
  366. return OnOffMode.On;
  367. }
  368. }
  369.  
  370. class unammo extends Module {
  371. getName() {
  372. return 'Unlimited Ammo';
  373. }
  374. getKey() {
  375. return ''+keys.four+'';
  376. }
  377. getAllModes() {
  378. return [OnOffMode.Off, OnOffMode.On];
  379. }
  380. getInitialMode() {
  381. return OnOffMode.On;
  382. }
  383. }
  384.  
  385. class norec extends Module {
  386. getName() {
  387. return 'No Recoil';
  388. }
  389. getKey() {
  390. return ''+keys.five+'';
  391. }
  392. getAllModes() {
  393. return [OnOffMode.Off, OnOffMode.On];
  394. }
  395. getInitialMode() {
  396. return OnOffMode.On;
  397. }
  398. }
  399.  
  400. class autoreload extends Module {
  401. getName() {
  402. return 'Auto Reload';
  403. }
  404. getKey() {
  405. return ''+keys.six+'';
  406. }
  407. getAllModes() {
  408. return [OnOffMode.Off, OnOffMode.On];
  409. }
  410. getInitialMode() {
  411. return OnOffMode.On;
  412. }
  413. }
  414.  
  415. class bunny extends Module {
  416. getName() {
  417. return 'Bunny Hop';
  418. }
  419. getKey() {
  420. return ''+keys.seven+'';
  421. }
  422. getAllModes() {
  423. return [OnOffMode.Off, OnOffMode.On];
  424. }
  425. getInitialMode() {
  426. return OnOffMode.On;
  427. }
  428. }
  429.  
  430. class Krunkerio_net {
  431. constructor() {
  432. this.modules = [];
  433. this.values='Krunkerio.org<hr>Krunkerio.net';
  434. }
  435. init() {
  436. this.modules.push(new aimbot());
  437. this.modules.push(new aimrange());
  438. this.modules.push(new esp());
  439. this.modules.push(new unammo());
  440. this.modules.push(new norec());
  441. this.modules.push(new autoreload());
  442. this.modules.push(new bunny());
  443. const initInfoBoxInterval = setInterval(() => {
  444. if (this.canInjectInfoBox()) {
  445. clearInterval(initInfoBoxInterval);
  446. this.injectInfoBox();
  447. this.updateInfoBox();
  448. }
  449. }, 100);
  450. }
  451. updateInfoBox() {
  452. const infoBox = document.querySelector('#krunkbotInfoBox');
  453. if (infoBox === null) {
  454. return;
  455. }
  456. const moduleLines = this.modules.map(module => {
  457. return `
  458. <div class="leaderItem">
  459. <div class="leaderNameF">[${module.getKey().toUpperCase()}] ${module.getName()}</div>
  460. <div class="leaderScore"></div>
  461. </div>
  462. `;
  463. });
  464. infoBox.innerHTML = `
  465. <div class="krunkbotTitle">${this.values}</div>
  466. ${moduleLines.join('')}
  467. `.trim();
  468. }
  469. injectInfoBox() {
  470. const infoBox = document.createElement('div');
  471. infoBox.innerHTML = `
  472. <div>
  473. <style>
  474. #krunkbotInfoBox {
  475. text-align: left;
  476. width: 310px;
  477. z-index: 3;
  478. padding: 10px;
  479. padding-left: 20px;
  480. padding-right: 20px;
  481. color: rgba(255, 255, 255, 0.7);
  482. line-height: 25px;
  483. margin-top: 20px;
  484. background-color: rgba(0, 0, 0, 0.2);
  485. }
  486.  
  487. #krunkbotInfoBox .krunkbotTitle {
  488. font-size: 18px;
  489. font-weight: bold;
  490. text-align: center;
  491. color: #fff;
  492. margin-top: 5px;
  493. margin-bottom: 5px;
  494. }
  495.  
  496. #krunkbotInfoBox .leaderItem {
  497. font-size: 14px;
  498. }
  499. </style>
  500.  
  501. <div id="krunkbotInfoBox"></div>
  502. </div>
  503. `.trim();
  504. const leaderDisplay = document.querySelector('#leaderDisplay');
  505. leaderDisplay.parentNode.insertBefore(infoBox.firstChild, leaderDisplay.nextSibling);
  506. }
  507. canInjectInfoBox() {
  508. return document.querySelector('#leaderDisplay') !== null;
  509. }
  510. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement