?? xiongmaosaoxiangshaduchengxu.txt
字號:
C語言熊貓燒香殺毒程序
代碼如下:
/* autorun virus killing programme */
#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) //刪除setup和autorun
{
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) //刪除desktop
{
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) //autorun免疫
{
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;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -