Skip to content

Instantly share code, notes, and snippets.

View marlkiller's full-sized avatar
😃
have a nice day

Void marlkiller

😃
have a nice day
View GitHub Profile
@marlkiller
marlkiller / inject.c
Created September 29, 2024 03:37 — forked from vocaeq/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>