mirror of
https://github.com/NohamR/RMHook.git
synced 2026-05-26 04:17:11 +00:00
Add build modes and dev hooks, improve injection and docs
Introduces build mode options (rmfakecloud, qmldiff, dev, all) to CMake and build scripts, enabling selective compilation of hooks for cloud redirection, Qt resource hooking, and reverse engineering. Adds new hooks and memory logging for dev mode, updates injection script to handle libzstd.1.dylib dependency, and documents build modes in README.
This commit is contained in:
@@ -30,4 +30,20 @@
|
||||
logPrefix:(NSString *)logPrefix
|
||||
delayInSeconds:(NSTimeInterval)delayInSeconds;
|
||||
|
||||
/**
|
||||
* Hooks a function at a specific address after calculating ASLR slide.
|
||||
*
|
||||
* @param imageName The name of the image/library (e.g., "QtNetwork" or "reMarkable").
|
||||
* @param staticAddress The static address from the binary (before ASLR).
|
||||
* @param hookFunction The function to replace the original with.
|
||||
* @param originalFunction Pointer to store the original function address.
|
||||
* @param logPrefix Prefix for log messages (optional, can be nil).
|
||||
* @return YES if the hook was successfully installed, NO otherwise.
|
||||
*/
|
||||
+ (BOOL)hookAddress:(NSString *)imageName
|
||||
staticAddress:(uintptr_t)staticAddress
|
||||
hookFunction:(void *)hookFunction
|
||||
originalFunction:(void **)originalFunction
|
||||
logPrefix:(NSString *)logPrefix;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user