Discussion [libil2cpp.so] what would happon if I added more bytes

TagsX

Platinian
Original poster
May 29, 2023
32
6
8
18
saudi-arabia
we usually overwrite bytes in libil2cpp.so but what if I added more extra bytes, if I have 32 length function(the length of the bytes) at offset 23E9C and wanted to add extra bytes so the function does something before executing the actually opcodes, would the libil2cpp.so code break down as its arm?

here a code that should call a function to log into console (if you can't read this ARM code, no problem just answer my question above)
C-like:
ADRP x8, #0x3b93000
ADRP x9, #0x3bcc000
LDR x8, [x8, #0x9f8]
LDR x9, [x9, #0xe20]
ORR w3, wzr, #0xf
MOV x2, x20
LDR x0, [x8]
LDR x1, [x9]
MOV x4, xzr
BL #0x24040cc
 

mIsmanXP

Approved Modder
Approved Modder
Feb 20, 2022
205
9,225
193
Republic of Indonesia
Adding more bytes, would mean you insert bytes which will corrupt the binary.
Also you should not overwrite bytes more than the function size
 

libModz

Awesome Active Platinian
Jun 2, 2022
171
30
28
UK
I want to try that but I'm on android, do you recommand any tools/apps?
For Android use AIDE, search on YouTube for how to download & set it up.
Some other useful apps for modding are

- APK Editor Pro
- APK Repacker
- APKtool M
- MT Manager

You can download them from various places online
 

hprnv

Platinian
Sep 4, 2023
11
3
3
35
I want to try that but I'm on android, do you recommand any tools/apps?
Frida. For hooking is a top1 tool, usually used for SSL unpinng, installed at PC, installed on android and with js do what you need. You can find a few SSL unpinning scripts get to have an idea of how this work and, based on this, write code for your needs.
 
  • Like
Reactions: TagsX

TagsX

Platinian
Original poster
May 29, 2023
32
6
8
18
saudi-arabia
Frida. For hooking is a top1 tool, usually used for SSL unpinng, installed at PC, installed on android and with js do what you need. You can find a few SSL unpinning scripts get to have an idea of how this work and, based on this, write code for your needs.
I found out about it, its looks simple and fairly beginner friendly but unfortunately I keep getting connection and spawning(crashing) errors so I may not use it
edit: I'm following this repo learn-frida