This article shares the tools and steps needed to hack an Unity3D game.
Tools:
- https://github.com/Perfare/Il2CppDumper
- https://github.com/dnSpyEx/dnSpy
- https://github.com/frida/frida
- IDA Pro
- Hex editor
- https://armconverter.com/
Steps:
- Extract
libil2cpp.soandglobal-metadata.datfrom the game apk file - Use Il2CppDumper to get dumped
dump.csand dlls - Use dnSpy to view the dumped code (Class structures and address), find the target method to hack
- Use frida to verify if the target method can be hacked
- Open
libil2cpp.sowith IDA Pro and goto the target method address, create function, find the instructions to be patched - Use
armconverterto convert instructions to hex code - Use hex editor to apply the patch to
libil2cpp.so - Replace
libil2cpp.soin the game apk file with patched one, sign the apk and install