viruscamp / luadec

Lua Decompiler for lua 5.1 , 5.2 and 5.3
1.14k stars 343 forks source link

Can not decompile luac with luadec and unluac #55

Closed ZuzooVn closed 6 years ago

ZuzooVn commented 6 years ago

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?

ZuzooVn commented 6 years ago

Sorry for any inconvenience @viruscamp Do you have any recommendation?

ZuzooVn commented 6 years ago

Hey anybody has the recommendation?

ziggadyzig25 commented 2 years ago

Hi ZuzooVn, Just curious if you ever found out how to do this. I'm brand new to Lua/Luajit and I think I am trying to do the same thing.

Bam810bam321 commented 2 years ago

Remember is mostly Binary if its any other type of encryption it might not work