macSubstrate
macSubstrate copied to clipboard
How I can hook C functions?
Hi, Thank you for your git. How can I hook C funtion, please?
for example:
int uname(struct utsname *);
or
CFDictionaryRef CNCopyCurrentNetworkInfo(CFStringRef interfaceName);
try DYLD_INTERPOSE or fishhook?
Thank you for your answer. And can you show me an example for hooking C++ functions, please?