forkbomb.pl
alex

A fork bomb is described as a program or shell script which (either
intentionally or accidently) creates new processes repeatedly using
the fork() system call. New processes are created so fast that within
no time the process table gets filled up and the system comes to a
grinding halt.

This particular fork bomb outputs binary data while flooding the
machine. This data is patterned partly by the algorithm represented
in the code, and partly by the operating system it executes within. A
computer operating system is in a constant state of change, and so the
script will produce different results every time. The output is an
artistic impression of your system under strain.

Here's the code:

my $strength = $ARGV[0] + 1;

while (not fork) {
  exit unless --$strength;
  print 0;
  twist: while (fork) {
    exit unless --$strength;
    print 1;
  }
}
goto 'twist' if --$strength;


Please read this disclaimer before downloading

download here   | report broken link
project homepage: http://slab.org
keywords: perl-hackerly-unix-dangerous software for posix and linux
category: system dysfunctionality/denial of service
uploaded by alex, 14 Dec 2002




newcomers, sign up here.

login

email

password

forgot your password?
latest projects
Pellow
L3-37
Light Pattern
Drunk Eliza
naked on pluto
torrent.py
100.000.000 stolen pixels
Incorrect Music 2
[more]

featured projects
LYCAY (Let Your Code plAY)
Reject Me
Go-Logo
Outsource me!
The Invisible Hand Machine
aPpRoPiRaTe!
Towards a Permanently Temporary Software Art Factory
[more]