I have to reverse engineer a ELF binary file that also contains LUA bytecode, what would be the best approach for extracting the LUA bytecode to decompile it with luadec or similar tools ?
Currently I loaded the binary in Ghidra, mostly understood the functionality and how the lua code is loaded but I'am not very experienced in such things. The binary uses luaL_readbuffer() to load the scripts, those scripts seems to be embedded in the binary files as variables.
Thanks!