Skip to content

Instantly share code, notes, and snippets.

@vocaeq
vocaeq / inject.c
Last active April 2, 2024 09:09 — forked from knightsc/inject.c
An example of how to inject code to call dlopen and load a dylib into a remote mach task. Tested on 12.5 M1 Pro.
#include <dlfcn.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <mach/mach.h>
#include <mach/error.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/sysctl.h>
#include <sys/mman.h>
@vocaeq
vocaeq / static_dynamic_ios_inspection.md
Created January 18, 2021 14:14 — forked from rustymagnet3000/a_ios_introspection.md
Static and Dynamic iOS inspection