fishhook
A library that enables dynamically rebinding symbols in Mach-O binaries running on iOS.
About this project
fishhook fishhook is a very simple library that enables dynamically rebinding symbols in Mach-O binaries running on iOS in the simulator and on device. This provides functionality that is similar to using DYLDINTERPOSE on OS X. At Facebook, we've found it useful as a way to hook calls in libSystem for debugging/tracing purposes (for example, auditing for double-close issues with file descriptors). Usage Once you add fishhook.h/fishhook.c to your project, you can rebind symbols as follows: Sample output How it works dyld binds lazy and non-lazy symbols by updating pointers in particular sections of the DATA segment of a Mach-O binary. fishhook re-binds these symbols by…
Technologies
Project health
GitHub
Reviews
Built by
Maintain facebook/fishhook? Claiming verifies admin access through your GitHub account and gives you control of this listing.