Guest User

Untitled

a guest
Dec 12th, 2024
48
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.  
Add Comment
Please, Sign In to add comment