Dec 5 22:32:31 iPhone iOSRETargetApp[2512] : iOSRE: Found CPPFunction!
Dec 5 22:32:31 iPhone iOSRETargetApp[2512] : iOSRE: Found ShortCFunction!
Dec 5 22:32:31 iPhone iOSRETargetApp[2512] : iOSRE: Found ShortCFunction!
Dec 5 22:32:36 iPhone iOSRETargetApp[2512] : Junk:
Dec 5 22:32:36 iPhone iOSRETargetApp[2512] : iOSRE: CPPFunction: This is a hijacked C++ function!
Dec 5 22:32:36 iPhone iOSRETargetApp[2512] : Junk:
Dec 5 22:32:36 iPhone iOSRETargetApp[2512] : iOSRE: CFunction: This is a C function!
Dec 5 22:32:36 iPhone iOSRETargetApp[2512] : Junk:
Dec 5 22:32:36 iPhone iOSRETargetApp[2512] : iOSRE: CPPFunction: This is a hijacked C++ function!
书上最后一个输出是 iOSRE: CPPFunction: This is a hijacked short C function from new__ZN8CPPClass11CPPFunctionEPKc!
第三个ShortCFunction 确实是调用了 CPPClass::CPPFunction, 执行hook,判断条件是 strcmp(arg0, “This is a short C function!”) == 0,执行的是else语句,和书上的结果相反?