我中了,想不到解决的方法,请大家帮忙
给你一个用C语言写的熊猫专杀.不过这个程序现在还不能对感染的exe文件进行修复.
源代码:
#include "stdio.h"
#include "stdlib.h"
#define a "pause"
#define b "cls"
void timedelay(void);
void taskkill(void);
void viruskill(void);
void autosetupkill(void);
void desktopkill(void);
void autodefense(void);
void timedelay(void)
{
for(int i=0;i<90000;i++)
for(int j=0;j<9000;j++)
;
}
void taskkill(void)
{
printf("killing virus task...\n");
timedelay();
system("taskkill /f /t /im spcolsv.exe");
system("taskkill /f /t /im FuckJacks.exe");
system("taskkill /f /t /im nvscv32.exe");
system("taskkill /f /t /im sxs.exe ");
system("taskkill /f /t /im iexpl0re.exe");
system("taskkill /f /t /im svohost.exe");
system("taskkill /f /t /im svcshare.exe");
system("taskkill /f /t /im heixia.exe");
system("taskkill /f /t /im msmsgs.exe");
printf("virus task has been killed!\n");
system(a);
system(b);
}
void viruskill(void)
{
printf("killing virus files...\n");
timedelay();
system("attrib -s -h -r C:\\WINDOWS\\System32\\Drivers\\spoclsv.exe");
system("del /f /s /q /a C:\\WINDOWS\\System32\\Drivers\\spoclsv.exe");
system("attrib -s -h -r C:\\WINDOWS\\system32\\drivers\\nvscv32.exe");
system("del /f /s /q /a C:\\WINDOWS\\system32\\drivers\\nvscv32.exe");
system("attrib -s -h -r C:\\Windows\\System32\\FuckJacks.exe");
system("del /f /s /q /a C:\\Windows\\System32\\FuckJacks.exe");
printf("virus files have been killed!\n");
system(a);
system(b);
}
void autosetupkill(void)
{
printf("killing autorun and setup...\n");
timedelay();
system("attrib -s -h -r c:\\setup.exe");
system("del /f /q /a c:\\setup.exe");
system("attrib -s -h -r c:\\autorun.exe");
system("del /f /q /s /a c:\\autorun.exe");
system("attrib -s -h -r d:\\setup.exe");
system("del /f /q /a d:\\setup.exe");
system("attrib -s -h -r d:\\autorun.exe");
system("del /f /q /s /a d:\\autorun.exe");
system("attrib -s -h -r e:\\setup.exe");
system("del /f /q /a e:\\setup.exe");
system("attrib -s -h -r e:\\autorun.exe");
system("del /f /q /s /a e:\\autorun.exe");
system("attrib -s -h -r f:\\setup.exe");
system("del /f /q /a f:\\setup.exe");
system("attrib -s -h -r f:\\autorun.exe");
system("del /f /q /s /a f:\\autorun.exe");
system("attrib -s -h -r g:\\setup.exe");
system("del /f /q /a g:\\setup.exe");
system("attrib -s -h -r g:\\autorun.exe");
system("del /f /q /s /a g:\\autorun.exe");
printf("autorun and setup files have been killed!\n");
system(a);
system(b);
}
void desktopkill(void)
{
printf("killing desktop files...\n");
timedelay();
system("attrib -s -h -r c:\\desktop.ini /s");
system("del /f /s /q /a c:\\desktop.ini");
system("attrib -s -h -r d:\\desktop.ini /s");
system("del /f /s /q /a d:\\desktop.ini");
system("attrib -s -h -r e:\\desktop.ini /s");
system("del /f /s /q /a e:\\desktop.ini");
system("attrib -s -h -r f:\\desktop.ini /s");
system("del /f /s /q /a f:\\desktop.ini");
system("attrib -s -h -r g:\\desktop.ini /s");
system("del /f /s /q /a g:\\desktop.ini");
printf("desktop has benen killed!\n");
system(a);
system(b);
}
void autodefense(void)
{
printf("now beginning create files...\n");
timedelay();
system("md c:\\autorun.inf");
system("md c:\\autorun.inf\\a..\\");
system("md d:\\autorun.inf");
system("md d:\\autorun.inf\\a..\\");
system("md e:\\autorun.inf");
system("md e:\\autorun.inf\\a..\\");
system("md f:\\autorun.inf");
system("md f:\\autorun.inf\\a..\\");
system("md g:\\autorun.inf");
system("md g:\\autorun.inf\\a..\\");
printf("virus defense has been finished!\n");
}
int main(void)
{
printf("This is a autorun virus killing programme!\n");
timedelay();
taskkill();
viruskill();
autosetupkill();
desktopkill();
autodefense();
printf("Congratulations to you that you kill all the autorun virus!\n");
system(a);
system(b);
return 0;
}