Tutorial Basic Hooking Tutorial

HekaHeka709

Solid & Active Platinian
Dec 29, 2021
57
9
8
20
Phillipines
Hi now i understand basic of hooking and patching but now i want to know if it's possible to just read an adress and toast it? Or moddify a type that something like this
Void method(SimSocial Media, int views)
So i found something like that i want to modify the views
Is it possible?
 

Nesur

Rookie
Mar 30, 2022
1
0
1
27
China
Hey, bro, help. I'm learning about hooking with mod-menu. I have a question. I don't understand the meaning of the two lines:
*(int *) ((uint64_t) instance + 0x30) = 5000;
MSHookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x00000), (void *) GameMode_Update, (void **) &old_GameMode_Update);
How can we know the offset(always 0?) of a Class to hook the field? And does the name of the hook method should be the same with the Class(GameMode_Update, old_GameMode_Update)?Can you offer me a full script of a game. Thank u very much.
 

760223127

Platinian
Oct 25, 2020
11
0
1
24
tian123si
I got it..but it seems for non il2cpp games.....what if I want to edit arm code through hxd for freeze?? Any specific code?? Can you explain?? Thanx for great tutorial
冻结的本质是循环修改,
while(boolean on-off){
//Control the start or close of the thread through the switch.
// do revise

Sleep(1000)
}