Skip to content

j4k0xb/krunkscript-pwn

Repository files navigation

KrunkScript Pwn

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

Tip

Check out the new decompiler: https://krunkscript-decompiler.netlify.app/

  • Outputs almost 100% identical KrunkScript syntax
  • Infers types through constraint propagation and data flow analysis

Decompiler comparison

Installation

  1. Install Tampermonkey for your browser.
  2. Add the userscript.

Features

Deobfuscator comparison

  • 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