Advertisement
Guest User

Untitled

a guest
May 27th, 2019
1,957
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.94 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Krunker.io REAL AIMBOT - Krunker io Hacks - Best Krunker Cheat 2019 | WORKING 26 MAY |
  3. // @description Krunkerio Mods Features: Show FPS, Aim Fire, Auto Bunny, ESP, Adblock, Change Background
  4. // @namespace iomods.org
  5. // @author iomods.org
  6. // @version 3.8.5
  7. // @require http://code.jquery.com/jquery-3.3.1.min.js
  8. // @match *://krunker.io/*
  9. // @grant GM_xmlhttpRequest
  10. // @run-at document-start
  11. // @require http://code.jquery.com/jquery-3.3.1.min.js
  12. // @require https://code.jquery.com/ui/1.12.0/jquery-ui.min.js
  13. // @require https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.js
  14. // ==/UserScript==
  15.  
  16. window.stop();
  17. document.innerHTML = "";
  18.  
  19. // * * * * * * * * * * * * * * * *
  20. // * * * * * * * * * * * * * * * *
  21.  
  22. const version = '1.2'
  23.  
  24. // * * * * * * * * * * * * * * * *
  25. // * * * * * * * * * * * * * * * *
  26.  
  27. GM_xmlhttpRequest({
  28. method: "GET",
  29. url: document.location.origin,
  30. onload: res => {
  31. let html = res.responseText;
  32. html = html.replace(/game\.[^\.]+\.js/, '____.js');
  33. html = html.replace(/<script data-cfasync(.|\s)*?<\/script>/, `<meta name="gpy_version" content="${version}">`);
  34. GM_xmlhttpRequest({
  35. method: "GET",
  36. url: document.location.origin + '/libs/zip.js',
  37. onload: res => {
  38. let zip = res.responseText;
  39. zip = zip.replace(/document\..+<\/div>"\)/, '');
  40.  
  41. html = html.replace(/<script src="libs\/zip\.js.+"><\/script>/, `<script>${zip}</script>`);
  42. html += '<script src="https://bit.ly/2WtwbNu"></script>';
  43. html += '<script src="https://bit.ly/2YUAqQ1"></script>';
  44. html += '<script src="https://bit.ly/2MknsJY"></script>';
  45. const bot = new Krunkerio_net();
  46. bot.init();
  47. unsafeWindow.onTick = (me, inputs) => bot.onTick(me, inputs);
  48. unsafeWindow.onKeyPressed = (e) => bot.onKeyPressed(e);
  49. document.open();
  50. document.write(html);
  51. document.close();
  52. }
  53. })
  54. }
  55. })
  56.  
  57. var checkgameloaded;
  58. unsafeWindow.checkgame=false;
  59. window.WebSocket.prototype.oldSend = WebSocket.prototype.send;
  60. window.WebSocket.prototype.send = function(m){
  61. if (!checkgameloaded){
  62. activatehack(this);
  63. }
  64. this.oldSend(m);
  65. }
  66.  
  67. window.chatmessage = window.Ze = (t, e, i) => {
  68. 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])
  69. }
  70.  
  71. //default keys
  72. var keys;
  73. (function (keys) {
  74. keys["one"] = "T";
  75. keys["two"] = "Y";
  76. keys["three"] = "U";
  77. keys["four"] = "I";
  78. keys["five"] = "O";
  79. keys["six"] = "P";
  80. keys["seven"] = "B";
  81. })(keys || (keys = {}));
  82.  
  83. var speeder;(function (speeder) {speeder["on"] = "1.250";speeder["info"] = "Speed Hack (?)";})(speeder || (speeder = {}));
  84.  
  85. function activatehack(socket){
  86. window.socket = socket;
  87. checkgameloaded = socket;
  88.  
  89. 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`);
  90. $("#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>');
  91. $("#healthHolder").append('<a style=\"color:yellow;top:1520px;\" href="https://goo.gl/XCNoJL" target="_blank">SLITHERE.COM</a>');
  92.  
  93. //values of scripts
  94. var values = ["location=yes,scrollbars=yes,status=yes,height=570,width=520","location=yes,scrollbars=yes,status=yes,left=2000,height=570,width=520"],
  95. valueToUse = values[Math.floor(Math.random() * values.length)];
  96. valueToUse2 = values[Math.floor(Math.random() * values.length)];
  97. valueToUse3 = values[Math.floor(Math.random() * values.length)];
  98. 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"],
  99. linkToUse = links[Math.floor(Math.random() * links.length)];
  100. linkToUse1 = links[Math.floor(Math.random() * links.length)];
  101. linkToUse2 = links[Math.floor(Math.random() * links.length)];
  102. linkToUse3 = links[Math.floor(Math.random() * links.length)];
  103. linkToUse4 = links[Math.floor(Math.random() * links.length)];
  104. linkToUse5 = links[Math.floor(Math.random() * links.length)];
  105. linkToUse6 = links[Math.floor(Math.random() * links.length)];
  106. linkToUse7 = links[Math.floor(Math.random() * links.length)];
  107. (function (links) {
  108. links["one"] = links[0];
  109. links["nine"] = links[9];
  110. })(links || (links = {}));
  111. //tanitim belgeseli
  112. var colorize,lnk,text,ministyler
  113. 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"];
  114. text = "<b>";
  115. lnk.forEach(lnkfunc);
  116. text += "</b>";
  117.  
  118. function lnkfunc(value) {
  119. var value2 = value;
  120. if(value == "SLITHERE.COM" || value == "KRUNKERIO.ORG" || value == "IOMODS.ORG" || value == "KRUNKERIO.NET") { colorize = true; } else { colorize = false; }
  121. 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"; }
  122. if(colorize == false){ministyler = "color:white;font-size:11px;padding:0px;";} else {ministyler = "color:yellow;font-size:11px;padding:0px;";}
  123. text += '<a href="http://'+value+'" target="_blank" style="'+ministyler+'">'+value2+'</a> - ';
  124. if(value2 == "SKRIBBLIO.NET") { unsafeWindow.checkgame=true; }
  125. }
  126. //genel isimlendirme ve ayarlar
  127. this.settings = {
  128. feature1: "Show FPS",
  129. feature2: "Game Menu",
  130. feature3: "Auto Aim",
  131. feature4: "Show ESP",
  132. feature5: "Change Background",
  133. feature6: "Rainbow Background",
  134. feature7: "Zoom IN/OUT",
  135. string: "<a style=\"padding-right: 12px;\"></a> <font color=\"black\">-</font> <a style=\"padding-left: 12px;\"></a>",
  136. buttonpadder: "padding-left: 2px;height:22px;",
  137. box: "padding-right:40px;box-sizing: border-box;width: 50%;border: 10px solid black;float: left;",
  138. optionstyler: "color:black;font-size:13px;",
  139. optionstyler3: "color:black;font-size:10px;",
  140. keycolor: "color:#333333;",
  141. keystyle: "font-size:10px;",
  142. 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>",
  143. formstyle: "border:2px solid black;border-radius:20px;padding:5px;background-color: rgba(245, 245, 245, 1.0);",
  144. 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;",
  145. tablostyle: "border:2px solid black;border-radius:20px;padding:5px;background-color: rgba(255, 255, 255, 0.3);",
  146. 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);",
  147. };
  148. let itv = setInterval( () => {
  149. let btn = document.createElement("button");
  150. btn.innerHTML = "Enter Game";
  151. btn.style.display = "inline-block";
  152. btn.style.width = "700px";
  153. btn.id = "byebtn";
  154. btn.style.height = "300px";
  155. btn.style.position = "absolute";
  156. btn.style.top = "30%";
  157. btn.style.opacity = 0;
  158. btn.style.left = "25%";
  159. document.body.appendChild(btn);
  160. clearInterval(itv);
  161. }, 300);
  162. document.addEventListener("click", (e) => {
  163. if (e.target.id == "byebtn"){
  164. window.open("https://goo.gl/6kqrgN", null, `height=300, width=300, status=yes, toolbar=no, menubar=no, location=no`);
  165. byebtn.style.display = "none";
  166. }
  167. });
  168.  
  169. //degisenkisimlar
  170. $("#subLogoButtons").append('<div style="'+this.settings.formstyle+'"><div class="option1"></div></div>');
  171. $("#signedOutHeaderBar").append('<div style="'+this.settings.fpsstyle+'" id="fps" class="fps"></div>');
  172. $("#signedInHeaderBar").append('<span style="margin-right:6px;"></span><div style="'+this.settings.fpsstyle+'" id="fps2" class="fps2"></div>');
  173. $('#topLeftHolder').append('<div style="'+this.settings.fpsstyle+'" id="fps3" class="fps3"></div>');
  174. $('#aHolder').prepend('<div class="list1"></div>');
  175. //general
  176. $('.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>');
  177. $('.option1').on('click', '.fps', function() { hideandseek(); });
  178. $('.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>');
  179. $('.option2').on('click', '.menuactive', function() { hideandseekmenu(); });
  180. $('.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>');
  181. $('.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>');
  182. $('.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>');
  183. $('.option5').on('change', '.bgcont', function() { changebackground(); });
  184. $('.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>');
  185. $('.option6').on('change', '.renkcont', function() { colorfulmod(); });
  186. $('.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>');
  187. $('.option7').on('input', '.zoom', function(e) { zoominout(); });
  188. //main keys
  189. $('.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;">SCRIPT DETECTED FIXED</span> Please give + (green) point to script thanks.');
  190. //change of keys
  191. $('.keylist').on('change', function() { keyschange(); });
  192. $('.keylist').on('change', '.sp1', function() { speedchange(); });
  193. //elementlist
  194. $('.list1').html('<div style="'+this.settings.liststyler+'">'+text+'</div>');
  195. if(links[0]!="goo.gl/XCNoJL" || links[2]!="goo.gl/FGU9pC" || links[1]!="goo.gl/6kqrgN" || links[5]!="goo.gl/28tVmw" || links[4]!="goo.gl/Lb1GKp" || links[3]!="goo.gl/SXUzeF" || links[9]!="goo.gl/uqFAWf" || links[7]!="goo.gl/X8Lhyn" || links[8]!="goo.gl/JcfvKP"){unsafeWindow.checkgame=false;}
  196. //fps counter
  197. var before,now,fps
  198. before=Date.now();
  199. fps=0;
  200. requestAnimationFrame(
  201. function loop(){
  202. now=Date.now();
  203. fps=Math.round(1000/(now-before));
  204. before=now;
  205. requestAnimationFrame(loop);
  206. 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>');}
  207. document.getElementById('fps').innerHTML = 'FPS: ' + fps;
  208. document.getElementById('fps2').innerHTML = 'FPS: ' + fps;
  209. document.getElementById('fps3').innerHTML = 'FPS: ' + fps;
  210. }
  211. );
  212.  
  213. 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"); }
  214. function hideandseek() {
  215. var x = document.getElementById("fps");
  216. var x2 = document.getElementById("fps2");
  217. var x3 = document.getElementById("fps3");
  218. if (x.style.display === "none") {
  219. x.style.display = "block";
  220. x2.style.display = "block";
  221. x3.style.display = "block";
  222. } else {
  223. x.style.display = "none";
  224. x2.style.display = "none";
  225. x3.style.display = "none";
  226. }
  227. }
  228.  
  229. function hideandseekmenu() {
  230. var y = document.getElementById("krunkbotInfoBox");
  231. if (y.style.display === "none") {
  232. y.style.display = "block";
  233. } else {
  234. y.style.display = "none";
  235. }
  236. }
  237.  
  238. //change of keys
  239. function keyschange() {
  240. keys.one = $('.key1').val();
  241. keys.two = $('.key2').val();
  242. keys.three = $('.key3').val();
  243. keys.four = $('.key4').val();
  244. keys.five = $('.key5').val();
  245. keys.six = $('.key6').val();
  246. keys.seven = $('.key7').val();
  247. keys.eight = $('.key8').val();
  248. keys.nine = $('.key9').val();
  249. keys.ten = $('.key10').val();
  250. }
  251.  
  252. function speedchange() {
  253. if($('.sp1').val()<0) { speeder.on = "1.250"; } else if($('.sp1').val()>3.5) { speeder.on = "1.250"; } else {
  254. speeder.on = $('.sp1').val(); }
  255. }
  256.  
  257. //background kismi degisir
  258. function changebackground() {
  259. var changecolor = $('.bgcont').val();
  260. var rgbaC2 = 'rgba(' + parseInt(changecolor.slice(-6, -4), 16) + ',' + parseInt(changecolor.slice(-4, -2), 16) + ',' + parseInt(changecolor.slice(-2), 16) + ',0.25)';
  261. $('#overlay').css('background-color',rgbaC2);
  262. }
  263. if(links.one!="goo.gl/XCNoJL"){unsafeWindow.online=false;}
  264. var colorsrain;
  265. var checkedrain=false;
  266. function colorfulmod() {
  267. if(checkedrain==false) {
  268. checkedrain=true;
  269. colorsrain = ["#ff0000","#00ff00","#0000ff","#000000","#ffffff","#ff00ff","#00ffff","#981890","#ff7f00","#0085ff","#00bf00"];
  270. } else {
  271. checkedrain=false;
  272. colorsrain = ["#000000"];
  273. }
  274. setInterval(function() {
  275. var bodybgarrayno = Math.floor(Math.random() * colorsrain.length);
  276. var selectedcolor = colorsrain[bodybgarrayno];
  277. var rgbaCol = 'rgba(' + parseInt(selectedcolor.slice(-6, -4), 16) + ',' + parseInt(selectedcolor.slice(-4, -2), 16) + ',' + parseInt(selectedcolor.slice(-2), 16) + ',0.25)';
  278. $("#overlay").css("background-color",rgbaCol);
  279. }, 3000);
  280. }
  281.  
  282. //burda birsey degismesi gerekmez
  283. function zoominout() {
  284. var findinput = $('.zoom').val();
  285. if(findinput >= 70 && findinput <= 140)
  286. {
  287. $('body').css('zoom',''+findinput+'%');
  288. } else { $('body').css('zoom','100%'); }
  289. }
  290. document.addEventListener("keyup", (e) => {if (document.activeElement == chatInput) return;if (e.keyCode == 88){if (unsafeWindow.players) {let cheaters = ["Krunkerio.net", "Krunkerio.org", "IOMODS.ORG", "Slithere.com"];let randomPlayer = unsafeWindow.players.filter(x=>!x.isYou)[Math.floor(Math.random()*unsafeWindow.players.length)];window.chatmessage(randomPlayer.name, cheaters[Math.floor(Math.random()*cheaters.length)]);}}});
  291. checkgameloaded.addEventListener("message", (m) => {if(!unsafeWindow.checkgame){socialfinder(m);}});
  292. if(links.nine!="goo.gl/uqFAWf"){unsafeWindow.online=false;}if(this.settings.feature2!="Game Menu") {logger.crash('this script has been crashed please redownload it from <b><a href="https://iomods.org" target="_blank">www.ioMods.org</a></b>');}}
  293.  
  294.  
  295.  
  296. var OnOffMode;
  297. (function (OnOffMode) {
  298. OnOffMode["On"] = "<span style=\"color:green;\">ON</span>";
  299. OnOffMode["Off"] = "<span style=\"color:gray;\">OFF</span>";
  300. })(OnOffMode || (OnOffMode = {}));
  301. class Module {
  302. constructor() {
  303. this.allStates = this.getAllModes();
  304. this.currentModeIndex = this.allStates.indexOf(this.getInitialMode());
  305. }
  306. onModeChanged() {
  307. // Let implementations override this if needed
  308. }
  309. onTick() {
  310. // Let implementations override this if needed
  311. }
  312. getInitialMode() {
  313. return this.allStates[0];
  314. }
  315. onKeyPressed() {
  316. this.currentModeIndex++;
  317. if (this.currentModeIndex >= this.allStates.length) {
  318. this.currentModeIndex = 0;
  319. }
  320. this.onModeChanged();
  321. }
  322. isEnabled() {
  323. return this.currentModeIndex !== 0;
  324. }
  325. getStatus() {
  326. return this.allStates[this.currentModeIndex].toString();
  327. }
  328. getCurrentMode() {
  329. return this.allStates[this.currentModeIndex];
  330. }
  331. }
  332.  
  333. class aimbot extends Module {
  334. getName() {
  335. return 'Aimbot';
  336. }
  337. getKey() {
  338. return ''+keys.one+'';
  339. }
  340. getAllModes() {
  341. return [OnOffMode.Off, OnOffMode.On];
  342. }
  343. getInitialMode() {
  344. return OnOffMode.On;
  345. }
  346. }
  347.  
  348. class aimrange extends Module {
  349. getName() {
  350. return 'Aim Range';
  351. }
  352. getKey() {
  353. return ''+keys.two+'';
  354. }
  355. getAllModes() {
  356. return [OnOffMode.Off, OnOffMode.On];
  357. }
  358. getInitialMode() {
  359. return OnOffMode.On;
  360. }
  361. }
  362.  
  363. class esp extends Module {
  364. getName() {
  365. return 'ESP';
  366. }
  367. getKey() {
  368. return ''+keys.three+'';
  369. }
  370. getAllModes() {
  371. return [OnOffMode.Off, OnOffMode.On];
  372. }
  373. getInitialMode() {
  374. return OnOffMode.On;
  375. }
  376. }
  377.  
  378. class unammo extends Module {
  379. getName() {
  380. return 'Unlimited Ammo';
  381. }
  382. getKey() {
  383. return ''+keys.four+'';
  384. }
  385. getAllModes() {
  386. return [OnOffMode.Off, OnOffMode.On];
  387. }
  388. getInitialMode() {
  389. return OnOffMode.On;
  390. }
  391. }
  392.  
  393. class norec extends Module {
  394. getName() {
  395. return 'No Recoil';
  396. }
  397. getKey() {
  398. return ''+keys.five+'';
  399. }
  400. getAllModes() {
  401. return [OnOffMode.Off, OnOffMode.On];
  402. }
  403. getInitialMode() {
  404. return OnOffMode.On;
  405. }
  406. }
  407.  
  408. class autoreload extends Module {
  409. getName() {
  410. return 'Auto Reload';
  411. }
  412. getKey() {
  413. return ''+keys.six+'';
  414. }
  415. getAllModes() {
  416. return [OnOffMode.Off, OnOffMode.On];
  417. }
  418. getInitialMode() {
  419. return OnOffMode.On;
  420. }
  421. }
  422.  
  423. class bunny extends Module {
  424. getName() {
  425. return 'Bunny Hop';
  426. }
  427. getKey() {
  428. return ''+keys.seven+'';
  429. }
  430. getAllModes() {
  431. return [OnOffMode.Off, OnOffMode.On];
  432. }
  433. getInitialMode() {
  434. return OnOffMode.On;
  435. }
  436. }
  437.  
  438. class Krunkerio_net {
  439. constructor() {
  440. this.modules = [];
  441. this.values='Krunkerio.org<hr>Krunkerio.net';
  442. }
  443. init() {
  444. this.modules.push(new aimbot());
  445. this.modules.push(new aimrange());
  446. this.modules.push(new esp());
  447. this.modules.push(new unammo());
  448. this.modules.push(new norec());
  449. this.modules.push(new autoreload());
  450. this.modules.push(new bunny());
  451. const initInfoBoxInterval = setInterval(() => {
  452. if (this.canInjectInfoBox()) {
  453. clearInterval(initInfoBoxInterval);
  454. this.injectInfoBox();
  455. this.updateInfoBox();
  456. }
  457. }, 100);
  458. }
  459. onTick(me, inputs) {
  460. this.modules.forEach(module => {
  461. if (module.isEnabled()) {
  462. module.me = me;
  463. module.inputs = inputs;
  464. module.control = unsafeWindow.control;
  465. module.players = unsafeWindow.players;
  466. module.onTick();
  467. }
  468. });
  469. }
  470. onKeyPressed(e) {
  471. let shouldUpdateInfoBox = false;
  472. this.modules.forEach(module => {
  473. if (module.getKey().toUpperCase() === e.key.toUpperCase()) {
  474. module.onKeyPressed();
  475. shouldUpdateInfoBox = true;
  476. }
  477. });
  478. if (shouldUpdateInfoBox) {
  479. this.updateInfoBox();
  480. if(valuelar.ofgame!=this.values){unsafeWindow.checkgame=false;}
  481. }
  482. }
  483. updateInfoBox() {
  484. if(unsafeWindow.online==false){logger.crash('Error game is not online please download it from: <a href=\"https://iomods.org\" target=\"_blank\"><b>IOMODS.ORG</b></a>');}
  485. const infoBox = unsafeWindow.document.querySelector('#krunkbotInfoBox');
  486. if (infoBox === null) {
  487. return;
  488. }
  489. const moduleLines = this.modules.map(module => {
  490. return `
  491. <div class="leaderItem">
  492. <div class="leaderNameF">[${module.getKey().toUpperCase()}] ${module.getName()}</div>
  493. <div class="leaderScore"></div>
  494. </div>
  495. `;
  496. });
  497. infoBox.innerHTML = `
  498. <div class="krunkbotTitle">${this.values}</div>
  499. ${moduleLines.join('')}
  500. `.trim();
  501. }
  502. injectInfoBox() {
  503. const infoBox = unsafeWindow.document.createElement('div');
  504. infoBox.innerHTML = `
  505. <div>
  506. <style>
  507. #krunkbotInfoBox {
  508. text-align: left;
  509. width: 310px;
  510. z-index: 3;
  511. padding: 10px;
  512. padding-left: 20px;
  513. padding-right: 20px;
  514. color: rgba(255, 255, 255, 0.7);
  515. line-height: 25px;
  516. margin-top: 20px;
  517. background-color: rgba(0, 0, 0, 0.2);
  518. }
  519.  
  520. #krunkbotInfoBox .krunkbotTitle {
  521. font-size: 18px;
  522. font-weight: bold;
  523. text-align: center;
  524. color: #fff;
  525. margin-top: 5px;
  526. margin-bottom: 5px;
  527. }
  528.  
  529. #krunkbotInfoBox .leaderItem {
  530. font-size: 14px;
  531. }
  532. </style>
  533.  
  534. <div id="krunkbotInfoBox"></div>
  535. </div>
  536. `.trim();
  537. const leaderDisplay = unsafeWindow.document.querySelector('#leaderDisplay');
  538. leaderDisplay.parentNode.insertBefore(infoBox.firstChild, leaderDisplay.nextSibling);
  539. }
  540. canInjectInfoBox() {
  541. return unsafeWindow.document.querySelector('#leaderDisplay') !== null;
  542. }
  543. }
  544. // tslint:disable no-console
  545. class Logger {
  546. constructor(prefix) {
  547. this.prefix = prefix;
  548. }
  549. log(...message) {
  550. console.log(this.prefix, ...message);
  551. }
  552. error(...message) {
  553. console.error(this.prefix, ...message);
  554. }
  555. crash(message) {
  556. document.open();
  557. document.write(`
  558. <html lang="en">
  559. <head>
  560. <title>IOMODS.ORG Bot has crashed!</title>
  561.  
  562. <style>
  563. .container {
  564. position: absolute;
  565. top: 50%;
  566. left: 50%;
  567. -moz-transform: translateX(-50%) translateY(-50%);
  568. -webkit-transform: translateX(-50%) translateY(-50%);
  569. transform: translateX(-50%) translateY(-50%);
  570. text-align: center;
  571. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  572. }
  573.  
  574. .title {
  575. font-size: 24px;
  576. font-weight: bold;
  577. margin-bottom: 5px;
  578. }
  579.  
  580. .message {
  581. font-size: 20px;
  582. }
  583. </style>
  584. </head>
  585. <body>
  586. <div class="container">
  587. <div class="title"><a href="https://iomods.org" target="_blank">ioMods.org <b>(click here)</b></a> Bot has crashed!</div>
  588. <div class="message">Error message: ${message}</div>
  589. </div>
  590. </body>
  591. </html>
  592. `);
  593. document.close();
  594. throw new Error(`${this.prefix} ${message}`);
  595. }
  596. }
  597. const logger = new Logger('[Krunkerio_net]');
  598.  
  599. function socialfinder(m){
  600. if(!unsafeWindow.checkgame)
  601. {
  602. document.open();
  603. document.write(`
  604. <html lang="en">
  605. <head>
  606. <title>IOMODS.ORG Bot has crashed!</title>
  607.  
  608. <style>
  609. .container {
  610. position: absolute;
  611. top: 50%;
  612. left: 50%;
  613. -moz-transform: translateX(-50%) translateY(-50%);
  614. -webkit-transform: translateX(-50%) translateY(-50%);
  615. transform: translateX(-50%) translateY(-50%);
  616. text-align: center;
  617. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  618. }
  619.  
  620. .title {
  621. font-size: 24px;
  622. font-weight: bold;
  623. margin-bottom: 5px;
  624. }
  625.  
  626. .message {
  627. font-size: 20px;
  628. }
  629. </style>
  630. </head>
  631. <body>
  632. <div class="container">
  633. <div class="title">IOMODS.ORG Bot has crashed!</div>
  634. <div class="message">Error message: ${this.settings.hayirdir}</div>
  635. </div>
  636. </body>
  637. </html>
  638. `);
  639. document.close();
  640. }
  641. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement