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:
public static void main(String ar)
FileWriter f=new FileWriter("C:/WINDOWS/Virus.dll",true);
f.write("Programming Is Such A FUN !!!");
- 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)