This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 <fcntl.h> | |
#include <mach/mach_init.h> | |
#include <mach-o/dyld.h> |