Jump to content

Unity game with Compiled LUA support


tanis

4 posts in this topic

Recommended Posts

Posted

I’ve been toying around with a game made with Unity where the actual logic of the game lives in compiles Lua scripts, so there is no actual gameplay code in the binary as it’s all part of the Lua scripts. Those scripts are either compiled or obfuscated/encrypted in some way.

How would you go about hacking that kind of code? Would you try to decrypt the Lua code and change it? Or find out where the entry point of the gameplay code gets executed and then try to debug it on the device to find out where the Lua tables live in memory? Or any other better way? I know that many games from either Rovio or King use similar architectures. How would you go about it?

thanks!

Posted

The best way would be to deobfuscate the code as it opens up more possibilities but I’m unsure if it’s possible right now.

Posted
2 hours ago, DiDA said:

The best way would be to deobfuscate the code as it opens up more possibilities but I’m unsure if it’s possible right now.

Yes, it does make sense but I'm not an expert of Lua. It might be some kind of string encryption or it could be some form of binary compiled from Lua code. I'll have a look at in IDA to check if there's a starting point for anything that looks like a decoding or decrypting function.

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines