Re: Crashing Unix

From: Douglas Siebert (dsiebert@excisethis.khamsin.net)
Date: 03/16/02


From: dsiebert@excisethis.khamsin.net (Douglas Siebert)
Date: Fri, 15 Mar 2002 23:59:04 +0000 (UTC)


"Nick" <goonerbloke_nospam_@hotmail.com> writes:

>I am a newcomer to Unix and only have very limited knowledge and experience
>of it.
>I am being taught Unix at University and during one lecture, the lecturer
>kept going on about us crashing it and he seemed disappointed that no-one
>managed it.

>Is there any kind of script or combination of commands that will crash Unix
>on a network? We cannot access the internet from our Unix server and using
>ftp between Windows & Unix is the only method of file transfer.

>I don't want to permanently screw up the system, just make it crash to see
>how it can be done.

Well, on recent versions of Linux:

echo 1 > /proc/sys/kernel/panic

This isn't really "crashing" as such since this is a way to deliberate
cause it to crash for testing purposes, but the net effect is the same.
Just about any Unix will crash if you write random data in /dev/kmem.
You must be root for either of these methods to work.

The trick is to find ways to crash it as a normal user. More difficult,
but doable (can't point to anything offhand though) There used to be
a program called 'crashme' floating around the net that executed random
syscalls and random code and was able to crash pretty much any Unix
system, given enough time. I think it was used as a way to detect bad
conditions and improve the robustness of the kernel, so it may no longer
work, at least on some systems. Haven't tried it in about 10 years.

There was a bug a few years back called the "ping of death" that was
able to crash a large variety of systems (many Unixes, Windows, even
some network devices like routers, switches, etc.) that was particularly
bad since someone could crash a system on the other side of the world
and all they needed was to be able to send a 'ping' packet to it. That
bug was quickly fixed after it became known, needless to say :)

--
Douglas Siebert                          dsiebert@excisethis.khamsin.net

A good friend will help you move, a true friend will help you move a body.



Relevant Pages

  • Re: Linux 2.6.29
    ... Fsync() was in BSD 4.3 and it was in much earlier Unix specifications, ... is written before a clobbering rename() is carried out, ... crash is small, and they're the ones with full system backups anyway. ...
    (Linux-Kernel)
  • Re: Crashing Unix
    ... >Is there any kind of script or combination of commands that will crash Unix ... We cannot access the internet from our Unix server and using ... configure your own kernel, but leave out driver support for your ... That's how you crash a Linux kernel. ...
    (comp.security.unix)
  • Is there any way for interprocedural multithread safe mutexes on Unix.
    ... I love windows it's so much better and well thought out then this unix ... process contains untrusted and maybe buggy user code that can crash at ... i need a mutex for this. ... If i only had a single thread in the process i could use semaphores ...
    (comp.programming.threads)
  • Re: Crashing Unix
    ... matter how powerful the system is .. ... >> university, Did he say crash Unix, or crash a program, collect the ... >>> Outgoing mail is certified Virus Free. ...
    (comp.security.unix)
  • Re: Crashing Unix
    ... > I am a newcomer to Unix and only have very limited knowledge and experience ... > I am being taught Unix at University and during one lecture, ... > Is there any kind of script or combination of commands that will crash Unix ... > Checked by AVG anti-virus system. ...
    (comp.security.unix)

Quantcast