nowadays game developers are choosing il2cpp instead of Mono as a backend for their games due its security system. but nothing can stop us right?
this tutorial is aimed to help peoples that have at least a lil knowledge in c++ or other alternative language.
so how to hack these games?
first of all you'll need some tools that will help you in your journey:
first of all you need to extract the libil2cpp.so form the apk file after unzipping it you'll find it under lib/ folder we will choose armeabi-v7a architecture so our hack will work for 32 as well as 64 bits architectures.
after extracting the lib we need one more file called global-metadata.dat located under assets/ just search there i don't remember the exact path.
so I'm sure you got il2cppdumper up and running, so load the il2cpp file and global-metadata.dat you'll get some files as output, we don't need all of these! just open dump.cs file with your preferred text editor I'm using vscode as it will highlight everything for us.
Now we need to do some more easy peasy setups first of all we need a function to hack right? so after loading the dump.cs file you'll notice that this file is filled with a bunch of functions and offsets wrapped in classes just search what you want to hack like getMoney or GetDamage after you find the right function copy the offset (the hex number).
know we need our last tool is the hex viewer, open you original il2cpp file using any hex viewer I'm using hxd and ctrl+f to search and paste the offset, hxd or whatever will bring you to the first byte of the function in that file.
last thing we need to do is to override the bytes of the function let's say getDamage we need this function to return a big big number so I'm overriding with this hex fragment:
12 07 A0 E3 1E FF 2F E1
that's it now recompile your game and sign it with apk easy tool and done.
here's a list of useful hex codes for modding and hacking. (credit polarmods)
https://polarmods.com/threads/useful-modding-hex-codes-helpful-for-beginners.23/
0 comments: