Tool; LuaC - HWRM/KarosGraveyard GitHub Wiki

Lua, 3.01 features an undumping utility in their tool, LuaC, for whatever, reason, this is not present in 4.0, doing a little hacking, I (Thought), re-implemented it.

Downloads:
luac.zip Binary of my modified LuaC.exe.
luac.c Source of the modified luac.c

Command Line:
luac -u lua script filename > file to save output to

Documentation
There are several versions of LuaC: one (Thought's modified version) is available here; another is available here; and a third (called LuaC4) is available here. (There are also other versions, intended for other versions of Lua.)

The third version is part of the Win32 binary distribution of Lua 4.0.1, and is probably the most official.

Command-line options for the Thought's modified version:

usage: luac [options] [filenames]. Available options are:
- process stdin
-u undump
-l list
-o file output file (default is "luac.out")
-p parse only
-s strip debug information
-t test code integrity
-v show version information

Command-line options for the second version:

usage: luac [options] [filenames]. Available options are:
- process stdin
-l list
-o file output file (default is "luac.out")
-p parse only
-s strip debug information
-t test code integrity
-v show version information

Command-line options for LuaC4:

usage: luac [options] [filenames]. Available options are:
- process stdin
-l list
-o file output file (default is "luac.out")
-p parse only
-s strip debug information
-t test code integrity
-v show version information

To Compile Files...

luac -o [outputfile] [inputfile]
Note: AFAIK you must be using the second version or LuaC to do this. -Mikali

To Undump Files...

luac -u [inputfile] > [outputfile]
Note: AFAIK you must be using the Thought's modified version to do this, though I haven't been able to get it to work. -Mikali

To Decompile Files...

Use Age2uN's Lua Decompiler (LuaDC).

Related Pages

Lua Decompiler (LuaDC)

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial