Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to decrypt Lua bytecode?

Tags:

bytecode

lua

Good morning, I'm trying to decipher a code of Moon bytecode, but i can not in any way, does anyone could help me with this?

I have this, example:

code = '\27\76\117\97\81\0\1\4\4\4\8\0\'

How I decrypt this bytecode to text?

I already search here: http://www.asciitable.com/ But find result, because some of it does not exist in the table

Please help me with this...

I'm trying to several days and nothing

like image 705
Bruno Avatar asked Jan 12 '23 16:01

Bruno


2 Answers

This seems to be bytecode for Lua 5.1. It is not encrypted cryptographically and be easily read with luac -l -p (not in source form but in VM instructions, which are probably enough to reconstruct the source). If you want to reconstruct the source, try LuaDec for Lua 5.1.

like image 134
lhf Avatar answered Jan 15 '23 07:01

lhf


have this, example:
code = '\27\76\117\97\81\0\1\4\4\4\8\0\'
How I decrypt this bytecode to text?

The sequence above is what Lua bytecode looks like, if the first character '\27' tells lua that the file is bytecode or text. The sequence is \27 followed by Lua '\76\117\97' followed by \81 which tells that this is a Lua 5.1 bytecode, etc. for details have a look at this link http://howto.oz-apps.com/2012/04/delve-deeper-into-lua-and-compilation.html

A very good resource can be found at http://chunkspy.luaforge.net/ and a wonderful detailed PDF from Kein Hong Man

like image 27
user2276554 Avatar answered Jan 15 '23 05:01

user2276554