PATH Hijacking (test.c) - Linux Privilege Escalation
#include <stdio.h>
int main(){
setuid(0);
printf("\n[+] Currently we are the next user: \n\n");
system("/usr/bin/whoami");
printf("\n[+] Currently we are the next user: \n\n");
system("whoami");
return 0;
}gcc test -o test



Mis à jour