⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xiongmaosaoxiangshaduchengxu.txt

📁 此程序为熊猫烧香病毒的杀毒程序
💻 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 + -