Advertisement
A_GUES

krunker.io hack

Mar 26th, 2023
420
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Krunker.io skin hack
  3. // @namespace https://krunker.io/social.html?p=profile&q=MrLaugh
  4. // @version v3.3.2
  5. // @description Krunker.io skin hack v3.3.2
  6. // @author MrLaugh
  7. // @match *://krunker.io/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. let skinConfig = {}
  12.  
  13. function s(c) {
  14. c.send = new Proxy(c.send, {
  15. apply(target, thisArg, msg) {
  16. if (msg[0] === "ent")
  17. skinConfig = {
  18. main: msg[1][2][0],
  19. secondary: msg[1][2][1],
  20. hat: msg[1][3],
  21. body: msg[1][4],
  22. knife: msg[1][9],
  23. dye: msg[1][14],
  24. waist: msg[1][17],
  25. }
  26.  
  27. return target.apply(thisArg, msg);
  28. }
  29. });
  30. c._dispatchEvent = new Proxy(c._dispatchEvent, {
  31. apply(target, thisArg, [type, msg]) {
  32. if (skinConfig && type === "0") {
  33. let playersInfo = msg[0];
  34. let perPlayerSize = 38;
  35. while (playersInfo.length % perPlayerSize !== 0)
  36. perPlayerSize++;
  37.  
  38. for(let i = 0; i < playersInfo.length; i += perPlayerSize)
  39. if (playersInfo[i] === c.socketId) {
  40. playersInfo[i + 12] = [skinConfig.main, skinConfig.secondary];
  41. playersInfo[i + 13] = skinConfig.hat;
  42. playersInfo[i + 14] = skinConfig.body;
  43. playersInfo[i + 19] = skinConfig.knife;
  44. playersInfo[i + 25] = skinConfig.dye;
  45. playersInfo[i + 33] = skinConfig.waist;
  46. }
  47. }
  48. return target.apply(thisArg, arguments[2]);
  49. }
  50. });
  51. }
  52.  
  53. const events = Symbol("kpal")
  54. Object.defineProperty(Object.prototype, "events", {enumerable:!1,get(){return this[events]},set(v){if(this.ahNum===0){s(this)}this[events]=v;}})
  55. const skins = Symbol("lol anticheat")
  56. Object.defineProperty(Object.prototype, "skins", {
  57. enumerable: false,
  58. get() {
  59. if (this.stats) {
  60. let skins = [];
  61. for(let i = 0; i < 5000; i++)
  62. skins.push({ind: i, cnt: i});
  63.  
  64. return skins;
  65. }
  66. return this[skins];
  67. },
  68. set(v) { this[skins] = v; }
  69. });
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement