Ever hacked a game, but everything was linked to the enemy?
Well, in this topic you'll learn multiple ways to unlink it.
Before this tutorial, I suggest you to read through this topic by @shmoo:
https://iosgods.com/topic/65529-instance-variables-and-function-pointers/
NOTE: I assume you know how to hook functions, since this is necessarily for unlinking.
In the examples you'll see something called "getRealOffset", this is used to defeat the ASLR.
Put this code on top of your tweak.xm so you can make use of it:
uint64_t getRealOffset(uint64_t offset){
return _dyld_get_image_vmaddr_slide(0) + offset;
}
Unlinking using functions
[Hidden Content]
Unlinking using variables
[Hidden Content]
Some notes:
- I know all of you use functions to mod, like get_health, get_damage etc, most likely there's also a variable for them which is easier to use in a Update() function if it exists.
- Some function take more "inputs" for example: get_health(int something, void somethingelse).. you need to include these in your hooks (add "void *instance" at the beginning then)
- I suggest you to copy all the codes into a editor & add the C++ syntax, this will make it more readable
That's it!
If you have any questions, feel free to ask me (mention me in the comments) & I'll try & help you!
Credits:
- @shmoo for his tutorial on function pointers & variables
- @Joey for writing this tutorial.