Guest User

Untitled

a guest
Sep 2nd, 2024
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <unistd.h>
  3.  
  4. int main(int argc, char **argv) {
  5. if (argc < 2) {
  6. fprintf(stderr, "Pass the command.\n");
  7. return -1;
  8. }
  9. setuid(0);
  10. setgid(0);
  11. return execvp(argv[1], argv + 1);
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment