Skip to content

Instantly share code, notes, and snippets.

@gregneagle
Created March 5, 2020 18:35
Show Gist options
  • Save gregneagle/c512ddfc7c027eed91058704d9e84702 to your computer and use it in GitHub Desktop.
Save gregneagle/c512ddfc7c027eed91058704d9e84702 to your computer and use it in GitHub Desktop.
Make your own PPPC/TCC avoidance wrapper!
//
// main.c
// fudo
//
#include <unistd.h>
int main(int argc, char * const argv[]) {
return execvp(argv[1], &argv[1]);
}
CC=gcc
CFLAGS=
SIGNINGIDENTITY="insert signing identity here"
IDENTIFIER=com.someorg.fudo.changeme
fudo: main.c
$(CC) -o fudo main.c
codesign -s $(SIGNINGIDENTITY) -i $(IDENTIFIER) fudo
clean:
rm fudo
@gregneagle
Copy link
Author

gregneagle commented Mar 5, 2020

Put these files in a directory.
cd into that directory
make fudo
Add a profile to your MDM that grants fudo access to all files, etc.
Profit?
/path/to/fudo systemsetup -remotelogin ON etc etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment