Stickhook
A simple and easy-to-use static inline hook framework for jailed iOS devices and macOS
Install / Use
/learn @Antibioticss/StickhookREADME
stickhook
This project is still under development
A simple and easy-to-use static inline hook framework for jailed iOS devices and macOS
Usage
- Call
stick_init()once in your hook library - Use
stick_hookorstick_replaceto declare hooks - After compiling, use
stickprepto install static patches into the target binary
Documentation
stickhook library
int stick_init(void);
Returns 0 on success.
void stick_hook(char *image_name, uint64_t vmaddr, void *replacement, void **originptr);
stick_hookis implemented as a C macro, this declaration is for reference only
Declare a function hook, and save original function
image_name— file name of the target binaryvmaddr— virtual memory address of the function to hook within the imagereplacement— the replacement functionoriginptr— pointer to store the original function
Note: hooks for the same image must be declared consecutively
void stick_replace(char *image_name, uint64_t vmaddr, void *replacement);
Same as above, but does not save original function
stickprep tool
stickprep <library> <target>
the filename of
targetmust matchimage_namespecified in thelibrary
Patch static hooks into target and update runtime metadata in library.
If library has hooks for multiple binaries, stickprep must be run once for each target binary.
Note: stickprep modifies both library and target. Do not run it more than once on the same binary.
Example
See the test directory for a working example.
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
