08.Hook
一、常见的Hook技术
二、fishhook
2.1 rebind_symbols
/*
* For each rebinding in rebindings, rebinds references to external, indirect
* symbols with the specified name to instead point at replacement for each
* image in the calling process as well as for all future images that are loaded
* by the process. If rebind_functions is called more than once, the symbols to
* rebind are added to the existing list of rebindings, and if a given symbol
* is rebound more than once, the later rebinding will take precedence.
*/
FISHHOOK_VISIBILITY
int rebind_symbols(struct rebinding rebindings[], size_t rebindings_nel);2.2 rebinding
2.3 使用 rebind_symbols hook NSLog
2.4 试一试hook C函数?
三、重绑定符号

四、符号绑定的过程
4.1 桩
五、总结
Last updated