jmpews / Dobby

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

iOS 16.5 hook unvalid #234

Open zhouyuboo opened 1 year ago

zhouyuboo commented 1 year ago

void *msg_send = DobbySymbolResolver("libobjc.A.dylib", "objc_msgSend"); pthread_key_create(&MsgSend_key, NULL); pthread_setspecific(MsgSend_key, &MsgSend_key); int hookResult = DobbyInstrument((void *)((mach_vm_address_t)msg_send + 8), zyb_msgSend_callBack);

'hookResult' is 0, but assemble code are not changed.