闲来无事,写个鼠标乱跑的病毒(只是好玩,完全不算病毒)。
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
srand(time(0));
while(1){
SetCursorPos(rand()%GetSystemMetrics(SM_CXSCREEN),rand()%GetSystemMetrics(SM_CYSCREEN));
}
return 0;
}
运行起来鼠标就会乱跑,只需按ctrl+c即可关闭。
就连360都不把它当做病毒ヽ(´ー`)ノ