Skip to content

ytfrdfiw/hook

 
 

Repository files navigation

hook

====

macOS and iOS hook (mac和ios平台hook)

hook的原理就是基于Mach_O文件格式修改stub的相应的跳转表

api原型

int fastHook(char *name,void *fn); 参数说明 name:要hook函数名称字符串;fn:新的替换方法

example

hook math库中的abs方法 编译运行 clang -g fastHook/fastHook.c example/test2.c test2

About

mac OSX and ios hook (mac和ios平台hook)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 100.0%