{"success":true,"data":{"ext":"luac","name":"LUAC","description":"Lua compiled bytecode (LUAC) is a binary code format generated by the Lua compiler and maintained by the Lua project. It is used to distribute precompiled Lua scripts, reduce load time, and support execution by the Lua interpreter in embedded systems, games, and automation tools. Because it is executable code rather than plain text, it should be treated as untrusted input when received from unknown sources.","mime":[],"risk_level":"Safe","signatures":[{"hex":"1B 4C 75 61","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_luac(file_path: str) -> bool:\n    \"\"\"Check if file is a valid LUAC by magic bytes.\"\"\"\n    signature = bytes([0x1B, 0x4C, 0x75, 0x61])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isLUAC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x1B, 0x4C, 0x75, 0x61]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsLUAC(data []byte) bool {\n    signature := []byte{0x1B, 0x4C, 0x75, 0x61}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}