6
votes
Accepted
Decrypting Lua Files
xxtea encrypt with KEY: sxpDM2018
result
FightLogic.lua
how find the KEY
IDA look at Function window
press CTRL+F and type xxtea_decrypt. double click first item and scroll up to see cocos2d::...
3
votes
Reversing Luac (is there a way to get proper variable names)
You can't retrieve function or variable names from compiled lua because the compiler strips it out of the compiled file, however you can make an educated guess by looking at what the decompiled lua ...
2
votes
Decrypting Lua Files from game
v5 = (_BYTE *)(*(int (__fastcall **)(cocos2d::CCFileUtils *, const char *, const char *, unsigned int *))(*(_DWORD *)this + 16))(
this,
a2,
"...
1
vote
Accepted
How to found signature XTEA for Lua
You can try using the plugin:
FindCrypt
Available for free on the Hex-Rays website, there is also an implementation that uses yara
findcrypt-yara
I have tested both and they do the job very well, ...
1
vote
Decode lua scripts for cocos2d based game / frida, android
use ida pro or ghidra to find the decryption function.
if you attach to the process on a real phone you can hook the xxtea function and the 16 bytes at the 3rd argument pointer will be the key.
1
vote
Decrypting some possibly XXTEA encrypted lua/game files
Next time please include the original apk in your question. Luckily I'm working on the same game so I can help somewhat.
Get the old apk (yzjlzl_2.80_1_20180918_170403_83de83.apk) from bilibili (...
1
vote
Finding lua C functions compiled binary
As you said, the Lua engine is embedded directly into the game. It's inside plugins/GameManagerVC.dll (or GameManagerVC64.dll in case of 64-bit).
So, first step will be finding out, which version of ...
1
vote
Accepted
Need help with reverse engineering camera-related information in a video game
After a lot of trial and error, and bits and pieces of the puzzle coming together from a lot of different sources and peoples' help, I'd like to answer my own questions to the extent I feel I'm able ...
1
vote
Need help with reverse engineering camera-related information in a video game
Question 3 & 4 Answer:
To move the camera/player in the direction you're facing you can use this function that works on eular angles. The only addresses you need to find are your current view ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
lua × 14ida × 7
c++ × 4
game-hacking × 4
disassembly × 3
decryption × 3
android × 2
dll-injection × 2
cheat-engine × 2
assembly × 1
decompilation × 1
cryptography × 1
frida × 1
flirt-signatures × 1