-
Posts
71 -
Joined
-
Last visited
We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines
Simplified MSHookMemory Usage [ARM64 Only]
in Tools
Posted
I don't know why people prefer integers type for this purpose which forces you to deal with endianness.
I just simplified yours too.
void inject(uint64_t offset, const void *bytes, size_t bytes_len) { MSHookMemory((void *)getRealOffset(offset), bytes, bytes_len); }
Usage:
You can write as many bytes as you want with this.