Skip to content

Instantly share code, notes, and snippets.

@d-dandrew
d-dandrew / ProcursusTSHelper.c
Created January 4, 2024 03:02 — forked from khanhduytran0/ProcursusTSHelper.c
ProcursusTSHelper.c
// fork() and rootless fix for Procursus bootstrap (named libTS2JailbreakEnv.dylib)
// there's lots of stuff not cleaned up, feel free to play around
// Requires fishhook from https://github.com/khanhduytran0/fishhook
// Usage: inject to libiosexec.dylib, ensure all binaries have get-task-allow entitlement
#include <assert.h>
#include <errno.h>
#include <mach/mach_init.h>
#include <mach-o/dyld.h>
#include <mach-o/getsect.h>