Skip to content

Instantly share code, notes, and snippets.

@Orc
Created July 18, 2017 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Orc/e91666025385ccc2b9d2b28d9a8159b3 to your computer and use it in GitHub Desktop.
Save Orc/e91666025385ccc2b9d2b28d9a8159b3 to your computer and use it in GitHub Desktop.
A cu wrapper to fill the time between realizing that apple shipped an insufficiently privileged cu & being able to boot the machine into recovery mode for a `csrutil disable`
#include <stdio.h>
#include <unistd.h>
main(argc, argv)
char **argv;
{
/* to get around the goddamn macos privilege protection racket */
execv("/usr/bin/cu", argv);
perror("cu");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment