Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <sys/types.h>
- #include <unistd.h>
- int main() {
- if (setuid(0)) {
- perror("setuid");
- return 1;
- }
- system("/bin/bash");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement