Copy Link
Add to Bookmark
Report

Phrack Inc. Volume 01 Issue 06 File 05

eZine's profile picture
Published in 
Phrack Inc
 · 5 years ago

  

==Phrack Inc.==

Volume One, Issue Six, Phile 5 of 13

===============================================================================
------------
Unix Nasties
------------
By Shooting Shark

Written on April 3, 1986
===============================================================================

Summary: Methods of sabotaging your favorite Unix system.

Preface: I do not advocate utilizing ANY of the methods I put forth in this
file. Unix is a cool operating system, perhaps one of the best
systems ever designed in many respects. If you have access to a Unix
system, you should LEARN UNIX AND LEARN C, because that is where the
money is in the computer world. However, Unix is a relatively
insecure operating system which is easy to fuck up. This file
explains a few ways of doing so.

Crash The System
----------------
Unix has no built-in provision for the maximum amount of disk space allowed per
user. Thus, one user can grab all the disk space on the system and effectively
prevent anyone else from writing to the disk. A simple way of grabbing all the
disk space is to create subdirectory after subdirectory until it is no longer
possible. Here are a few ways of doing it.

1> Create a file with the following lines:

mkdir subdir
cd subdir
source /u1/mydir/crash

Call it crash. The last line ("source /u1/mydir/crash") should be altered
so that it will look for the file in your directory. If your directory is
/u3/students/jeff, the last line should say "source
/u3/students/jeff/crash". After you write the above file, type:

% source crash

and wait...within a few minutes the program will abort because it won't
have any more room on the disk. Neither will anyone else.

2> Here's a more elegant way of doing the same thing. Create this "endless
loop" shellscript:

while : ; do
mkdir subdir
cd subdir
done

and then "source" the file. If you are in the "sh" shell (if you are, you
will probably have a "$" prompt) you can type "while : ; do" from the $
prompt. You will then get a > prompt. Type the next three lines and sit
back.

3> If you'd like to set the process in motion and hang up, and the file is
called crash, type:

% nohup source crash &

and log off. This will start it as a background process, allowing you to
log off. However, log off QUICKLY, since if you used the first example for
your crash file, it will also eat up background processes like crazy which
will also fuck up the system to some extent. Which brings us to...

Slow Down The System Immensely
------------------------------
There are many ways of doing this, the method being creating a sufficiently
large number of background processes. Here's one specific example. Create a
file called "slow1" with the following lines:

w &
source slow1

create a file called "slow2" with:

source slow1 &
source slow2

and execute slow2 with

% slow2
or
% slow2 &

This will create 25 background processes, each one running 25 background
processes. The system will hardly move after you've got each one running.

Messing Up A Directory
----------------------
Many file-handling commands use "-" options. Create a file with a "-" at the
beginning of its name by doing this:

cat > -filename

[now type a few lines, maybe something rude like "ha ha you can't delete this
file".] Type a ^D (control-d) to end input. You now have a file called
-filename in your directory. It will be VERY difficult to remove this file.
If you were to try rm (remove) -filename or mv (rename) -filename, the rm or mv
program would interpret -filename as an option, not a file, and would give you
an error message telling you that -filename was not a valid option...thus, the
file stays there obnoxiously.

Create a couple of hundred files with "-" as the first characters in their
names...it will be a royal pain for the person who is blessed with these new
files, and they will probably just have to get a new login.

Conclusion

The use of any of these techniques is quite irresponsible, and if anyone did
this to my Unix system, I'd be quite pissed. That is why I strongly recommend
that you never use these tricks.

So Long,
Shooting Shark

"Some people have a bad attitude, and I say, if they want to act tough, beat
'em up!" - Blue Oyster Cult
-------------------------------------------------------------------------------
For more information on UNIX sabotage and cracking, see the following articles:

Ritchie, Dennis M. [he wrote Unix] "On the Security of UNIX." Programmers
Manual for UNIX System III Volume II. Supplementary Documents.

Filipski, Alan and Hanko, James. "Making UNIX Secure." BYTE Magazine, April
1986, pp 113-128.
===============================================================================

← previous
next →
loading
sending ...
New to Neperos ? Sign Up for free
download Neperos App from Google Play
install Neperos as PWA

Let's discover also

Recent Articles

Recent Comments

lostcivilizations's profile picture
Lost Civilizations (@lostcivilizations)
6 Nov 2024
Thank you! I've corrected the date in the article. However, some websites list January 1980 as the date of death.

guest's profile picture
@guest
5 Nov 2024
Crespi died i april 1982, not january 1980.

guest's profile picture
@guest
4 Nov 2024
In 1955, the explorer Thor Heyerdahl managed to erect a Moai in eighteen days, with the help of twelve natives and using only logs and stone ...

guest's profile picture
@guest
4 Nov 2024
For what unknown reason did our distant ancestors dot much of the surface of the then-known lands with those large stones? Why are such cons ...

guest's profile picture
@guest
4 Nov 2024
The real pyramid mania exploded in 1830. A certain John Taylor, who had never visited them but relied on some measurements made by Colonel H ...

guest's profile picture
@guest
4 Nov 2024
Even with all the modern technologies available to us, structures like the Great Pyramid of Cheops could only be built today with immense di ...

lostcivilizations's profile picture
Lost Civilizations (@lostcivilizations)
2 Nov 2024
In Sardinia, there is a legend known as the Legend of Tirrenide. Thousands of years ago, there was a continent called Tirrenide. It was a l ...

guest's profile picture
@guest
2 Nov 2024
What is certain is that the first Greek geographer to clearly place the Pillars of Hercules at Gibraltar was Eratosthenes (who lived between ...

guest's profile picture
@guest
1 Nov 2024
Disquieting thc drinks has been quite the journey. As someone keen on unpretentious remedies, delving into the in every respect of hemp has ...

guest's profile picture
@guest
29 Oct 2024
hi Good day I am writing to inform you of recent developments that may impact our ongoing operations. This morning, global news outlets hav ...
Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT