0%

This article shares the tools and steps needed to hack an Unity3D game.

Tools:

Steps:

  • Extract libil2cpp.so and global-metadata.dat from the game apk file
  • Use Il2CppDumper to get dumped dump.cs and 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.so with IDA Pro and goto the target method address, create function, find the instructions to be patched
  • Use armconverter to convert instructions to hex code
  • Use hex editor to apply the patch to libil2cpp.so
  • Replace libil2cpp.so in the game apk file with patched one, sign the apk and install