Skip to content

Instantly share code, notes, and snippets.

@tbodt
Created July 3, 2018 01:08
Show Gist options
  • Save tbodt/0086036b2aec33fbd49f2eb0057e78e2 to your computer and use it in GitHub Desktop.
Save tbodt/0086036b2aec33fbd49f2eb0057e78e2 to your computer and use it in GitHub Desktop.
dylib that patches out PT_DENY_ATTACH on hopper disassembler 4.3.25 demo
static void *decrypt_start = (void *) 0x1000bafd5;
static void patch(void *addr, char value) {
*(char *) addr = value ^ (addr - decrypt_start) & 0xff;
}
static void __attribute__((constructor)) init() {
patch((void *) 0x1000bb00b, 0); // boobs
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment