Skip to content

Instantly share code, notes, and snippets.

View MickaelWalter's full-sized avatar

Mickaël Walter MickaelWalter

View GitHub Profile
@MickaelWalter
MickaelWalter / disassemble-luajit-v1.py
Created August 29, 2020 14:27
Quick&dirty verbose LuaJIT's bytecode version 1 disassembler
#!/usr/bin/env python3
import sys
import struct
import math
# Constants
# Internal (LEB128 buffer)
MAX_ULEB_SIZE = 256 # Maximum proto size here is 2^7^256