MyTapjoy logo MyTapjoy

Insert Dylib -

– interposing malloc :

void anti_injection_check() const char *env = getenv("DYLD_INSERT_LIBRARIES"); if (env && strlen(env) > 0) fprintf(stderr, "DYLD_INSERT_LIBRARIES detected: %s\n", env); exit(1); insert dylib

DYLD_INSERT_LIBRARIES=./mymalloc.dylib ./testprog Attach to a running process and call dlopen() remotely. Requires thread creation and function call in target. if (env && strlen(env) &gt