A macOS binary repackaging tool for injecting dylib.
FishHook supports macOS10.15+. The libinject.dylib can hook syscalls, such as execve, posix_spawn and other methods of interest to users. The binary fishhook can repack binary to inject the libinject.dylib to hook syscalls.
- Copy libinject.dylib to the '/usr/local/lib' directory.
- Run './fishhook $BinaryPath' to repack.
- Execute your binary to check if the system call is replaced.