Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name The Cheat Central Kour.io Hack
- // @namespace The Cheat Central Scripts
- // @match *://kour.io/*
- // @grant none
- // @version 1.0
- // @author Cheat Central
- // @description A Kour.io hack by The Cheat Central - https://thecheatcentral.com/
- // @run-at document-start
- // ==/UserScript==
- Object.defineProperty(Error,"stackTraceLimit",{
- value:1,
- writable:false
- })
- const serverUrl = "https://sub2krunkercentral.com";
- const publicKeyBuffer = new Uint8Array([48, 130, 1, 34, 48, 13, 6, 9, 42, 134, 72, 134, 247, 13, 1, 1, 1, 5, 0, 3, 130, 1, 15, 0, 48, 130, 1, 10, 2, 130, 1, 1, 0, 229, 111, 226, 207, 86, 246, 233, 241, 116, 242, 253, 123, 32, 118, 31, 184, 74, 86, 236, 84, 216, 171, 62, 143, 22, 141, 124, 163, 18, 182, 250, 248, 207, 30, 46, 243, 178, 216, 202, 237, 161, 56, 151, 161, 24, 13, 74, 110, 134, 208, 64, 71, 168, 198, 247, 92, 29, 190, 12, 158, 166, 240, 72, 216, 57, 245, 117, 201, 213, 249, 95, 179, 97, 236, 151, 105, 250, 218, 181, 193, 104, 154, 171, 42, 46, 58, 109, 29, 12, 56, 203, 132, 226, 20, 88, 236, 228, 201, 204, 47, 80, 55, 48, 182, 143, 120, 51, 150, 157, 121, 20, 7, 99, 120, 88, 127, 17, 127, 181, 89, 219, 85, 136, 167, 21, 100, 253, 43, 15, 218, 32, 80, 146, 237, 110, 236, 137, 58, 115, 63, 208, 11, 201, 39, 168, 166, 79, 159, 12, 226, 147, 98, 213, 213, 216, 67, 205, 252, 81, 8, 56, 103, 200, 20, 221, 227, 178, 38, 185, 198, 66, 28, 81, 32, 252, 245, 147, 44, 197, 79, 121, 153, 36, 55, 228, 16, 128, 200, 177, 68, 192, 81, 129, 139, 232, 223, 146, 214, 224, 60, 81, 48, 126, 147, 68, 205, 56, 103, 81, 124, 86, 34, 52, 116, 169, 185, 233, 192, 91, 154, 29, 61, 8, 201, 56, 56, 107, 255, 238, 174, 185, 125, 42, 178, 26, 50, 83, 84, 74, 110, 165, 66, 105, 72, 229, 241, 154, 127, 249, 117, 129, 71, 31, 1, 234, 39, 2, 3, 1, 0, 1]).buffer;
- crypto.subtle.importKey("spki", publicKeyBuffer, {
- name: "RSASSA-PKCS1-v1_5",
- hash: {
- name: "SHA-256"
- }
- }, true, ["verify"]).then(async _0x307fc1 => {
- async function _0x12da8a(_0x4ce21a) {
- }
- });
- const hackOptions = {
- instakill: false,
- invincibility: true,
- ghost: true,
- speed: true,
- wallhack: true
- };
- if (localStorage.centralHacks) {
- try {
- Object.assign(hackOptions, JSON.parse(localStorage.centralHacks));
- } catch {}
- }
- window.addEventListener("DOMContentLoaded", () => {
- const _0x53bb18 = document.createElement("div");
- _0x53bb18.id = "central";
- Object.assign(_0x53bb18.style, {
- position: "fixed",
- left: "10px",
- bottom: "10px",
- width: "260px",
- height: "30px",
- background: "#000000b0",
- color: "white",
- "font-family": "monospace",
- "font-size": "20px",
- "text-align": "center",
- "border-radius": "5px",
- cursor: "pointer",
- display: "flex",
- "flex-direction": "column-reverse"
- });
- const _0x269245 = document.createElement("div");
- _0x269245.innerText = "Kour.io Hacks Menu";
- _0x269245.style["user-select"] = "none";
- _0x53bb18.appendChild(_0x269245);
- const _0x46f5ef = document.createElement("div");
- _0x46f5ef.innerHTML = "\n\t\t<div>\n\t\t\t<a href=\"https://thecheatcentral.com/\" target=\"_blank\" style=\"color: white; text-decoration: none; font-size: 30px; font-weight: bold; padding: 20px; display: block;\">\n\t\t\t\tKour.io Hacks\n\t\t\t</a>\n\t\t</div>\n\t";
- _0x46f5ef.style.display = "none";
- Object.assign(_0x46f5ef.style, {
- "flex-direction": "column",
- width: "350px",
- background: "black",
- "border-radius": "5px",
- margin: "5px 0",
- padding: "0 0 10px",
- "border-radius": "5px"
- });
- const _0x1996c7 = (_0x2f95a4, _0x33e2e4, _0x50893d) => {
- const _0x4b430a = document.createElement("div");
- _0x4b430a.style.display = "flex";
- _0x4b430a.title = _0x50893d;
- const _0x33f25f = document.createElement("div");
- _0x33f25f.innerText = _0x33e2e4;
- _0x4b430a.appendChild(_0x33f25f);
- const _0x4e4a03 = document.createElement("div");
- _0x4e4a03.innerText = hackOptions[_0x2f95a4] ? "[ON]" : "[OFF]";
- Object.assign(_0x4e4a03.style, {
- "font-style": "bold",
- color: hackOptions[_0x2f95a4] ? "limegreen" : "tomato",
- "margin-left": "auto"
- });
- _0x4b430a.appendChild(_0x4e4a03);
- _0x4b430a.style.padding = "10px";
- _0x4b430a.onclick = () => {
- hackOptions[_0x2f95a4] = !hackOptions[_0x2f95a4];
- _0x4e4a03.innerText = hackOptions[_0x2f95a4] ? "[ON]" : "[OFF]";
- _0x4e4a03.style.color = hackOptions[_0x2f95a4] ? "limegreen" : "tomato";
- localStorage.centralHacks = JSON.stringify(hackOptions);
- };
- return _0x4b430a;
- };
- _0x46f5ef.appendChild(_0x1996c7("instakill", "Instakill", "Any gunshot will cause the affected person to die, you don't get score for killing"));
- _0x46f5ef.appendChild(_0x1996c7("invincibility", "Invincibility", "Bullets don't do damage to you"));
- _0x46f5ef.appendChild(_0x1996c7("wallhack", "Wallhack", "Lets you see players behind walls. Changing this setting requires restart."));
- _0x46f5ef.appendChild(_0x1996c7("ghost", "Ghost Mode", "Other players can't see you moving"));
- _0x46f5ef.appendChild(_0x1996c7("speed", "Speedhack (hold X)", "Holding X speeds up everything in the game"));
- _0x53bb18.appendChild(_0x46f5ef);
- let _0x58d5f8 = false;
- _0x269245.onclick = () => {
- _0x58d5f8 = !_0x58d5f8;
- _0x46f5ef.style.display = _0x58d5f8 ? "flex" : "none";
- };
- document.body.appendChild(_0x53bb18);
- wallHack();
- });
- const SpeedMultiplier = 5;
- const _now = performance.now.bind(performance);
- let timeOffset = 0;
- let speedStart = -1;
- window.addEventListener("keydown", _0x1fdd75 => {
- if (_0x1fdd75.key !== "x" || !hackOptions.speed || speedStart !== -1) {
- return;
- }
- _0x1fdd75.stopImmediatePropagation();
- _0x1fdd75.stopPropagation();
- _0x1fdd75.preventDefault();
- speedStart = _now();
- });
- window.addEventListener("keyup", _0xb540a8 => {
- if (_0xb540a8.key !== "x" || !hackOptions.speed || speedStart === -1) {
- return;
- }
- _0xb540a8.stopImmediatePropagation();
- _0xb540a8.stopPropagation();
- _0xb540a8.preventDefault();
- speedStart = -1;
- });
- performance.now = function () {
- if (speedStart === -1) {
- return _now() + timeOffset;
- }
- return speedStart + SpeedMultiplier * (_now() - speedStart) + timeOffset;
- };
- let gameWs = Symbol();
- window.WebSocket = new Proxy(WebSocket, {
- construct(_0x30a1d8, _0x489ad8) {
- const _0x218063 = Reflect.construct(_0x30a1d8, _0x489ad8);
- if (_0x489ad8[0]?.includes("/game/")) {
- console.log("Game connected:", _0x489ad8);
- gameWs = _0x218063;
- Object.defineProperty(_0x218063, "onmessage", {
- set(_0x45f9cc) {
- this._onmessage = _0x45f9cc;
- }
- });
- _0x218063.addEventListener("message", function (_0x18e840) {
- let _0x26ee04 = new Uint8Array(_0x18e840.data);
- if (!this._onmessage) {
- return;
- }
- if (_0x26ee04[2] === 200 && hackOptions.invincibility) {
- return;
- }
- this._onmessage.apply(this, arguments);
- });
- }
- return _0x218063;
- }
- });
- const _send = WebSocket.prototype.send;
- WebSocket.prototype.send = function send(_0x52768e) {
- if (this === gameWs) {
- const _0x581385 = new Uint8Array(_0x52768e);
- if (_0x581385[1] === 6) {
- return _send.apply(this, arguments);
- }
- if (_0x581385[6] === 201 || _0x581385[6] === 206 || _0x581385[6] === 200 && [27, 28].includes(_0x581385[_0x581385.length - 1])) {
- if (hackOptions.ghost) {
- return;
- } else {
- return _send.apply(this, arguments);
- }
- }
- if (_0x581385[6] === 200 && _0x581385.length > 60 && hackOptions.instakill) {
- let _0x1adb4c = 0;
- let _0x276bdc = setInterval(() => {
- if (_0x1adb4c++ > 10) {
- return clearInterval(_0x276bdc);
- }
- _send.apply(this, arguments);
- });
- }
- }
- return _send.apply(this, arguments);
- };
- function wallHack() {
- 'use strict';
- const _0x8213ff = WebGL2RenderingContext.prototype;
- HTMLCanvasElement.prototype.getContext = new Proxy(HTMLCanvasElement.prototype.getContext, {
- apply(_0x131522, _0x369590, _0x16806f) {
- return Reflect.apply(...arguments);
- }
- });
- if (window.observer != undefined) {
- window.observer.disconnect();
- }
- let MutationObserver = {
- observe: function () {
- console.log("Observed");
- }
- };
- if (window.location.href.indexOf("/a") != -1) {
- window.location.href = "https://kour.io";
- }
- var _0x81ce24 = null;
- const _0x46dd94 = {
- apply(_0x52d799, _0x1e1153, _0x54f8b6) {
- if (!hackOptions.wallhack) {
- return Reflect.apply(...arguments);
- }
- const _0x20160a = _0x1e1153.getParameter(_0x1e1153.CURRENT_PROGRAM);
- if (!_0x20160a.uniforms) {
- _0x20160a.uniforms = {
- enabled: _0x1e1153.getUniformLocation(_0x20160a, "enabled"),
- threshold: _0x1e1153.getUniformLocation(_0x20160a, "threshold")
- };
- }
- var _0x1e77ce = true;
- var _0x352861 = 4.5;
- if (_0x20160a.uniforms.enabled) {
- _0x1e1153.uniform1i(_0x20160a.uniforms.enabled, _0x1e77ce);
- }
- if (_0x20160a.uniforms.threshold) {
- _0x1e1153.uniform1f(_0x20160a.uniforms.threshold, _0x352861);
- }
- if (_0x1e77ce) {
- _0x81ce24 = _0x1e1153;
- }
- Reflect.apply(...arguments);
- }
- };
- _0x8213ff.drawElements = new Proxy(_0x8213ff.drawElements, _0x46dd94);
- _0x8213ff.drawElementsInstanced = new Proxy(_0x8213ff.drawElementsInstanced, _0x46dd94);
- _0x8213ff.shaderSource = new Proxy(_0x8213ff.shaderSource, {
- apply(_0x56826a, _0xc665ad, _0x22965b) {
- if (!hackOptions.wallhack) {
- return Reflect.apply(...arguments);
- }
- let [_0x3f01f0, _0x2bd33c] = _0x22965b;
- if (_0x2bd33c.indexOf("gl_Position") > -1) {
- if (_0x2bd33c.indexOf("OutlineEnabled") > -1) {
- _0x3f01f0.isPlayerShader = true;
- }
- _0x2bd33c = _0x2bd33c.replace("void main()\n{", "\n\t\t\t\t\tout float vDepth;\n\t\t\t\t\tout float enabled;\n\t\t\t\t\tuniform float threshold;\n\n\t\t\t\t\tvoid main() {\n\t\t\t\t\t\tenabled = 0.0;\n\n\t\t\t\t\t");
- if (_0x2bd33c.indexOf("hlslcc_mtx4x4unity_WorldToObject") != -1 && _0x2bd33c.indexOf("_MaskSoftnessX") == -1 && _0x2bd33c.indexOf("vs_TEXCOORD5.xyz = unity_SHC.xyz * vec3(u_xlat16_2) + u_xlat16_3.xyz;") != -1 && _0x2bd33c.indexOf("_DetailAlbedoMap_ST") != -1 && _0x2bd33c.indexOf("vs_TEXCOORD1.w = 0.0;") != -1) {
- _0x2bd33c = _0x2bd33c.replace("enabled = 0.0", "enabled = 1.0;\n\t\t\t\t\t\tif( in_POSITION0.y > 10.0 ) {\n\t\t\t\t\t\t\t//enabled = 2.0;\n\t\t\t\t\t\t}");
- _0x2bd33c = _0x2bd33c.replace(/return;/, "\n\t\t\t\t\t\tgl_Position.z = 0.01 + gl_Position.z * 0.1;\n\t\t\t\t\t");
- }
- } else if (_0x2bd33c.indexOf("SV_Target0") > -1) {
- _0x2bd33c = _0x2bd33c.replace("void main", "\n\n\t\t\t\tin float vDepth;\n\t\t\t\tin float enabled;\n\n\t\t\t\tvoid main\n\n\t\t\t\t").replace(/return;/, "\n\n\t\t\t\tif( enabled > 0.5 && SV_Target0.a == 1.0 ) {\n\n\t\t\t\t\tSV_Target0 = mix( SV_Target0 * 0.8, vec4( 1.0, 0.0, 0.0, 1.0 ), 0.4 );\n\t\t\t\t\tif( enabled > 0.5 ) {\n\t\t\t\t\t\t//SV_Target0.xyz = vec3( 1.0, 0.0, 0.0 );\n\t\t\t\t\t}\n\t\t\t\t\tSV_Target0.a = 1.0;\n\n\t\t\t\t}\n\n\t\t\t\t");
- }
- _0x22965b[1] = _0x2bd33c;
- return Reflect.apply(...arguments);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement