An open API service indexing awesome lists of open source software.

https://github.com/j4k0xb/krunkscript-pwn

Extract/deobfuscate/hook/inject maps with KrunkScript enabled
https://github.com/j4k0xb/krunkscript-pwn

ast codemod hooks injector krunker krunkerio krunkscript reverse-engineering

Last synced: about 2 months ago
JSON representation

Extract/deobfuscate/hook/inject maps with KrunkScript enabled

Awesome Lists containing this project

README

        

# KrunkScript Pwn

Userscript no longer works because JSON.parse can't be hooked.

> [!TIP]
> Check out the new decompiler:
>
> - Outputs almost 100% identical KrunkScript syntax
> - Infers types through constraint propagation and data flow analysis
>
> ![Decompiler comparison](https://github.com/user-attachments/assets/8fe59fe0-e507-44d7-8fcb-8988bbfcd4db)

## Installation

1. Install [Tampermonkey](http://www.tampermonkey.net) for your browser.
2. Add the [userscript](https://github.com/j4k0xb/krunkscript-pwn/raw/master/script.user.js).

## Features

- Extract, deobfuscate and beautify compiled KrunkScript when you join a map with scripts.
- Online deobfuscator:

![Deobfuscator comparison](https://user-images.githubusercontent.com/55899582/188747147-44ee146f-7d93-4920-996d-3972bd1cb8ef.png)

- Read/modify global variables.
- Access everything from `GAME`.
- Inject own actions.

## How To Download Scripts

1. Join a map with scripts
2. Use a chromium based browser
3. Open the developer console (F12)
4. Execute `queryObjects(Function.prototype)` (this may take a while)
5. Right-click on the resulting array and select "Store as global variable"
6. Execute `temp1.find(f=>f.name==='V_start')`
7. Click on the function to see the whole script in the sources tab