
Reverse-engineered runtime engine for Roblox/Luau with VM hooking, opcode remapping, capability escalation, and UNC script environment for executing arbitrary scripts.
Reconstructed, Reverse-Engineered & Documented by tekkenbugatti
Target Platform: Linux x86_64 / Luau / Roblox Runtime Engine
Linusware 1.2 is a native Linux x86_64 runtime extension and execution engine for Roblox / Luau. This repository contains the complete reconstructed source code derived through binary reverse engineering of the ELF runtime components, including full reverse analysis of the virtual machine hooks, opcode remapping tables, privilege escalation mechanics, and standard Universal Naming Convention (UNC) environment APIs.
HookedLuaResume (0x3a21d0) — VM Thread InterceptionInstalled as an inline 14-byte 64-bit absolute jump hook with a trampoline on the Roblox virtual machine thread dispatch entry (lua_resume).
lua_State->global_State located at offset L + 0x20.0x303fffffffffffff to the capability mask and writing 0x7 to capability flags.autoexec/ on initial VM contact.HookedCapThrower (0x399900) — Security Check Suppressioncap_thrower).tls_cap_depth, corresponding to %fs:ef8c) to dynamically suppress capability violation exceptions while executing user scripts.OpcodeEncoder (0x399640) — In-Place Luau Bytecode RemapperRoblox's VM scrambles standard Luau bytecode opcodes to deter static analysis. OpcodeEncoder re-encodes instructions in memory:
0x0829400003f02323): Decodes variable-length instructions (AUX dwords) for opcodes 7 .. 0x42.0xfe7b): Decodes extended variable-length instructions for opcodes 0x4a .. 0x59.g_wire_for_opcode lookup table.GrantProtoCapabilities (0x39a360) — Recursive Prototype EscalationLuauProto).&g_capability_grant) to proto + 0x38 on all root and nested child functions (proto->p).58+ Functions)Implements standard execution APIs:
hookfunction, hookmetamethod, newcclosure, clonefunction, isexecutorclosure, getrawmetatable, setrawmetatable.getupvalues, setupvalue, getconstants, setconstant, getprotos, setproto.readfile, , , , , , , , .linusware_src/
├── include/
│ └── linusware/
│ ├── linusware.h # Core engine interfaces & public exports
│ ├── messages.h # String tables, errors & logging constants
│ ├── script_environment.h # UNC function table registrations
│ ├── workspace.h # Filesystem sandbox definitions
│ ├── crypto.h # OpenSSL AES & SHA wrappers
│ ├── encoding.h # Base64 & LZ4 compression helpers
│ ├── websocket.h # WebSocket client interfaces
│ └── decompiler.h # Luau bytecode decompiler definitions
├── src/
│ ├── linusware/
│ │ ├── hooks.cc # HookedLuaResume, CapThrower, OpcodeEncoder, GrantProto
│ │ ├── linusware.cc # IPC server (exec.sock) & job queue dispatch
│ │ ├── script_environment.cc# Implementation of 58+ UNC environment APIs
│ │ ├── workspace.cc # Sandboxed IO implementation
│ │ ├── crypto.cc # Cryptographic primitives
│ │ ├── encoding.cc # Base64 & LZ4 implementation
│ │ ├── decompiler.cc # Prototype decompiler implementation
│ │ └── websocket.cc # Network socket layer
│ └── cli/
│ ├── linusware_cli.cc # Standalone CLI payload sender
│ └── wayland_clipboard.cc # Wayland/X11 clipboard bridge
└── CMakeLists.txt # Build configuration
cd linusware_src
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)
Reconstructed and reverse-engineered by tekkenbugatti.
writefileappendfiledelfilemakefolderdelfolderlistfilesisfolderisfilecrypt.encrypt, crypt.decrypt (AES-CBC, AES-GCM), crypt.hash (SHA-256, SHA-384, SHA-512), crypt.base64encode, crypt.base64decode, crypt.lz4compress, crypt.lz4decompress.request, HttpGet, WebSocket.connect, decompile, cloneref, setclipboard, getfpscap, setfpscap.