Skip to content

H1X4Dev/luajit-decompiler-v2

This branch is 1 commit ahead of, 2 commits behind marsinator358/luajit-decompiler-v2:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b52611f · Mar 11, 2024

History

25 Commits
Feb 25, 2024
Feb 25, 2024
Feb 25, 2024
Jul 30, 2023
Mar 11, 2024
Mar 11, 2024
Mar 11, 2024
Dec 9, 2023
Nov 25, 2023
Mar 11, 2024
Mar 11, 2024
Feb 25, 2024
Nov 25, 2023

Repository files navigation

LuaJIT Decompiler v2

LuaJIT Decompiler v2 is a replacement tool for the old and now mostly defunct python decompiler.
The project fixes all of the bugs and quirks the python decompiler had while also offering
full support for gotos and stripped bytecode including locals and upvalues.

Usage

  1. Head to the release section and download the latest executable.
  2. Drag and drop a valid LuaJIT bytecode file or a folder containing such files onto the exe.
    Alternatively, run the program in a command prompt. Use -? to show usage and options.
  3. All successfully decompiled .lua files are placed by default into the output folder
    located in the same directory as the exe.

Feel free to report any issues you have.

TODO

  • bytecode big endian support
  • improved decompilation logic for conditional assignments and if statements

This project uses an boolean expression decompilation algorithm that is based on this paper:
www.cse.iitd.ac.in/~sak/reports/isec2016-paper.pdf

About

LuaJIT bytecode decompiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.0%
  • C 2.0%