-1

I'm trying to decompile some .luac files unzipped from a game.And I tried some tools (unLuac & Luadec) but all of them gave me an empty .lua file with 0kb.

Are these luac files encrypt or I just use the wrong version of tools? Can anyone help me to solve this?

sherry
  • 1
  • 1
  • There's a difference between LuaJIT and CLua bytecode, as well as Lua 5.1 and Lua 5.2. Maybe your decompilers are for the wrong target. – Youka Jul 17 '15 at 15:28
  • So…is there anyway to get the right target by analyzing the .luac files?I can just see the string "NJ" in the messy code in every luac file.I don't know if it means something。 – sherry Jul 20 '15 at 07:42

1 Answers1

-1

The .luac can't do this, it's encrptyed.

simbabque
  • 53,749
  • 8
  • 73
  • 136
  • If it is encrypted, I have to write some algorithm code to decrypt it first before decompile it, right? – sherry Jul 20 '15 at 08:02
  • "Encrypted" is the wrong word, it's just compiled source code to bytecode. Bytecode still can be read with the same functionality of the source to discover, just in another form. – Youka Jul 20 '15 at 16:33
  • Thanks for your explaination! So it appears that the point is how to find out the right decompilers to read the bytecode.Is there any way to get the source compile tool (like LuaJit or CLua) ? – sherry Jul 21 '15 at 01:46