1

I know that the lua version is stored in the 5th byte of the luac file (the header). Here's the first few bytes of a luac file I have:

6D 6D 64 64 74 32

The 5th byte is 74. Is My Luac file LuaJIT bytecode?

I am trying to decompile this file and receive this error by using unluac

Exception in thread "main" java.lang.IllegalStateException: The input file does not have the signature of a valid Lua file.
at unluac.parse.BHeader.<init>(BHeader.java:41)
at unluac.Main.file_to_function(Main.java:71)
at unluac.Main.main(Main.java:42)

and below is error by using luadec (lua 5.1)

'=' expected near '?'

How can I decompile this file type?

Egor Skriptunoff
  • 23,359
  • 2
  • 34
  • 64
Nam Vu
  • 5,669
  • 7
  • 58
  • 90

0 Answers0