jmpews / Dobby

a lightweight, multi-platform, multi-architecture hook framework.
Apache License 2.0
3.98k stars 822 forks source link

ZzHookGOT's postcall not called #24

Closed everettjf closed 6 years ago

everettjf commented 6 years ago

Env: iOS arm64 Code:

    ZzHookGOT("objc_msgSend",NULL,NULL, objc_msgSend_pre_call, objc_msgSend_post_call);

Full Code:

https://github.com/everettjf/AppleTrace/blob/gothook_hookzz/appletrace/appletrace/src/objc/hook_objc_msgSend.m

Question: objc_msgSend_post_call not called while objc_msgSend_pre_call is called.

Is it a gothook bug or bug for me? 😄

everettjf commented 6 years ago

reproduction code: https://github.com/everettjf/AppleTrace/tree/gothook_hookzz

reproduction approach:

  1. git clone https://github.com/everettjf/AppleTrace.git
  2. git checkout gothook_hookzz
  3. git submodule update --init --recursive
  4. open sample/TraceAllMsgDemo/TraceAllMsgDemo.xcodeproj
everettjf commented 6 years ago

也支持 非越狱了吗?emmmmmm