Hey guys I tried hacking with MSHOOKMEMORY using this tutorial:
I created a bloody harry hack but after successfully compiling my project in theos and installing the .deb, the tweak fails to function in the game shows no affects.
Here my Makefile:
INSTALL_TARGET_PROCESSES = SpringBoard
include $(THEOS)/makefiles/common.mk
TWEAK_NAME_LIBRARIES = substrate
bloodyharry_FILES = Tweak.x
bloodyharry_CFLAGS = -fobjc-arc
include $(THEOS_MAKE_PATH)/tweak.mk
And here is my Tweak.xm:
#import <substrate.h>
#import <mach-o/dyld.h>
uint64_t realAddr(uint64_t offset) {
return offset + _dyld_get_image_vmaddr_slide(0);
}
%ctor {
uint64_t offset = realAddr(0x10092DEE8);
const uint8_t data[] = {
0x1F, 0x20, 0x03, 0xD5,
};
MSHookMemory((void *)offset, data, sizeof(data));
}
Can anyone tell me where am I going wrong and what should I do to make my hack work?? btw im on ios 12.1 unc0ver
Thanks in advance.