home *** CD-ROM | disk | FTP | other *** search
/ Hacker Chronicles 1 / HACKER1.ISO / phrk1 / ph065.txt < prev    next >
Text File  |  1992-09-26  |  5KB  |  137 lines

  1.                                 ==Phrack Inc.==
  2.  
  3.                      Volume One, Issue Six, Phile #5 of 13
  4.  
  5. ===============================================================================
  6.                                  ------------
  7.                                  Unix Nasties
  8.                                  ------------
  9.                                By Shooting Shark
  10.  
  11.                            Written on April 3, 1986
  12. ===============================================================================
  13.  
  14. Summary:  Methods of sabotaging your favorite Unix system.
  15.  
  16. Preface:  I do not advocate utilizing ANY of the methods I put forth in this
  17.           file.  Unix is a cool operating system, perhaps one of the best
  18.           systems ever designed in many respects.  If you have access to a Unix
  19.           system, you should LEARN UNIX AND LEARN C, because that is where the
  20.           money is in the computer world.  However, Unix is a relatively
  21.           insecure operating system which is easy to fuck up. This file
  22.           explains a few ways of doing so.
  23.  
  24. Crash The System
  25. ----------------
  26. Unix has no built-in provision for the maximum amount of disk space allowed per
  27. user.  Thus, one user can grab all the disk space on the system and effectively
  28. prevent anyone else from writing to the disk.  A simple way of grabbing all the
  29. disk space is to create subdirectory after subdirectory until it is no longer
  30. possible.  Here are a few ways of doing it.
  31.  
  32. 1>  Create a file with the following lines:
  33.  
  34. mkdir subdir
  35. cd subdir
  36. source /u1/mydir/crash
  37.  
  38.     Call it crash.  The last line ("source /u1/mydir/crash") should be altered
  39.     so that it will look for the file in your directory.  If your directory is
  40.     /u3/students/jeff, the last line should say "source
  41.     /u3/students/jeff/crash". After you write the above file, type:
  42.  
  43. % source crash
  44.  
  45.     and wait...within a few minutes the program will abort because it won't
  46.     have any more room on the disk.  Neither will anyone else.
  47.  
  48. 2>  Here's a more elegant way of doing the same thing.  Create this "endless
  49.     loop" shellscript:
  50.  
  51. while : ; do
  52. mkdir subdir
  53. cd subdir
  54. done
  55.  
  56.     and then "source" the file.  If you are in the "sh" shell (if you are, you
  57.     will probably have a "$" prompt) you can type "while : ; do" from the $
  58.     prompt.  You will then get a > prompt.  Type the next three lines and sit
  59.     back.
  60.  
  61. 3>  If you'd like to set the process in motion and hang up, and the file is
  62.     called crash, type:
  63.  
  64. % nohup source crash &
  65.  
  66.     and log off.  This will start it as a background process, allowing you to
  67.     log off.  However, log off QUICKLY, since if you used the first example for
  68.     your crash file, it will also eat up background processes like crazy which
  69.     will also fuck up the system to some extent.  Which brings us to...
  70.  
  71. Slow Down The System Immensely
  72. ------------------------------
  73. There are many ways of doing this, the method being creating a sufficiently
  74. large number of background processes.   Here's one specific example.  Create a
  75. file called "slow1" with the following lines:
  76.  
  77. w &
  78. source slow1
  79.  
  80. create a file called "slow2" with:
  81.  
  82. source slow1 &
  83. source slow2
  84.  
  85. and execute slow2 with
  86.  
  87. % slow2
  88. or
  89. % slow2 &
  90.  
  91. This will create 25 background processes, each one running 25 background
  92. processes.  The system will hardly move after you've got each one running.
  93.  
  94. Messing Up A Directory
  95. ----------------------
  96. Many file-handling commands use "-" options.  Create a file with a "-" at the
  97. beginning of its name by doing this:
  98.  
  99. cat > -filename
  100.  
  101. [now type a few lines, maybe something rude like "ha ha you can't delete this
  102. file".]  Type a ^D (control-d) to end input.  You now have a file called
  103. -filename in your directory.  It will be VERY difficult to remove this file.
  104. If you were to try rm (remove) -filename or mv (rename) -filename, the rm or mv
  105. program would interpret -filename as an option, not a file, and would give you
  106. an error message telling you that -filename was not a valid option...thus, the
  107. file stays there obnoxiously.
  108.  
  109. Create a couple of hundred files with "-" as the first characters in their
  110. names...it will be a royal pain for the person who is blessed with these new
  111. files, and they will probably just have to get a new login.
  112.  
  113. Conclusion
  114.  
  115. The use of any of these techniques is quite irresponsible, and if anyone did
  116. this to my Unix system, I'd be quite pissed.  That is why I strongly recommend
  117. that you never use these tricks.
  118.  
  119. So Long,
  120. Shooting Shark
  121.  
  122. "Some people have a bad attitude, and I say, if they want to act tough, beat
  123. 'em up!" -  Blue Oyster Cult
  124. -------------------------------------------------------------------------------
  125. For more information on UNIX sabotage and cracking, see the following articles:
  126.  
  127. Ritchie, Dennis M. [he wrote Unix] "On the Security of UNIX."  Programmers
  128. Manual for UNIX System III Volume II.  Supplementary Documents.
  129.  
  130. Filipski, Alan and Hanko, James.  "Making UNIX Secure."  BYTE Magazine, April
  131. 1986, pp 113-128.
  132. ===============================================================================
  133.  
  134.  
  135. ver Spy (Sysop o
  136. Downloaded From P-80 International Information Systems 304-744-2253 12yrs+
  137.