Advertisement
Guest User

one-off-suid-root wrapper

a guest
Sep 2nd, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 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. {
  8. setuid( 0 );
  9. system( "/usr/local/sbin/port-open" );
  10.  
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement