Closed JerryGinger closed 5 years ago
Thanks for reporting the issue. I'll fix the segmentation fault later.
I have a question. Do you want to hook read/write called by libSystem.B.dylib?
The _read
symbol is undefined in libSystem.B.dylib.
$ nm /usr/lib/libSystem.B.dylib | grep ' _read$'
U _read
It is defined in /usr/lib/system/libsystem_kernel.dylib
$ nm /usr/lib/system/libsystem_kernel.dylib | grep ' _read$'
0000000000002ee8 T _read
Otherwise do you want to hook all read/write calls? If the latter, use funchook instead.
Thanks for your prompt reply. I tried to hook "/usr/lib/libc.dylib" but segmentation fault also happened. funchook tool really works well.
When i hook read/write of socket function on macOS Platform as follows, it reported "segmentation fault".