Created
March 5, 2020 18:35
-
-
Save gregneagle/c512ddfc7c027eed91058704d9e84702 to your computer and use it in GitHub Desktop.
Make your own PPPC/TCC avoidance wrapper!
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
// | |
// main.c | |
// fudo | |
// | |
#include <unistd.h> | |
int main(int argc, char * const argv[]) { | |
return execvp(argv[1], &argv[1]); | |
} |
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put these files in a directory.
cd
into that directorymake fudo
Add a profile to your MDM that grants
fudo
access to all files, etc.Profit?
/path/to/fudo systemsetup -remotelogin ON
etc etc