吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 8276|回复: 11
收起左侧

[其他转载] lol防挂机系统外挂的尝试

  [复制链接]
zhanglangabce 发表于 2013-8-15 17:25
本帖最后由 zhanglangabce 于 2013-8-15 17:56 编辑

因为英雄联盟这款游戏他的防挂系统确实做得蛮好的,我的猜想是利用用 SetCursorPos(687+r1.left,606+r1.top)函数来实现鼠标移动,或者通过
PostMessage和sendMessage这两个函数,都是消息处理函数,可以处理鼠标的移动的。他们的代码是下面(这个是利用了别的大神写的)
WM_MOUSEMOVE
The WM_MOUSEMOVE message is posted to a window when the cursor moves. If the mouse is not captured, the message is posted to the window that contains the cursor. Otherwise, the message is posted to the window that has captured the mouse.

WM_MOUSEMOVE
fwKeys = wParam;        // key flags
xPos = LOWORD(lParam);  // horizontal position of cursor
yPos = HIWORD(lParam);  // vertical position of cursor

Parameters
fwKeys
Value of wParam. Indicates whether various virtual keys are down. This parameter can be any combination of the following values: Value Description
MK_CONTROL Set if the ctrl key is down.
MK_LBUTTON Set if the left mouse button is down.
MK_MBUTTON Set if the middle mouse button is down.
MK_RBUTTON Set if the right mouse button is down.
MK_SHIFT Set if the shift key is down.


xPos
Value of the low-order word of lParam. Specifies the x-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area.
yPos
Value of the high-order word of lParam. Specifies the y-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area.
Remarks
The MAKEPOINTS macro can be used to convert the lParam parameter to a POINTS structure.

上面是鼠标移动的消息定义。


下面是SendMessage函数在MSDN的定义。

SendMessage
The SendMessage function sends the specified message to a window or windows. The function calls the window procedure for the specified window and does not return until the window procedure has processed the message. The PostMessage function, in contrast, posts a message to a thread's message queue and returns immediately.

LRESULT SendMessage(
  HWND hWnd,      // handle of destination window
  UINT Msg,       // message to send
  WPARAM wParam,  // first message parameter
  LPARAM lParam   // second message parameter
);

Parameters
hWnd
Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows.
Msg
Specifies the message to be sent.
wParam
Specifies additional message-specific information.
lParam
Specifies additional message-specific information.


示例:
LPARAM lparam = MAKELPARAM(xPos, yPos); //x坐标,y坐标
LRESULT result = SendMessage(hWnd, WM_MOUSEMOVE, MK_LBUTTON, lparam);

在利用算法比如设置一个x,与y的关系式,比如说是圆形,使其在半径大于水晶的半径,然后鼠标将在这个圆内做规则的运动,从而使英雄也是在做圆周运动。
。但是要面对的问题是如何使得lol的防外挂系统不会排斥它,使得他与英雄联盟系统兼容,这个得话还没有很好地解决,,所以有哪位大神要是在这些个方面有想法的话,,果断的出来解决呀。。。。。。。。。。。如果想法有不对的地方,,欢迎大家批评呀。。。。。。。。

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

star0angel 发表于 2013-8-15 17:30
这是不想让我们 看么还是要看瞎我们啊
恋秋 发表于 2013-8-15 17:29
牛奶很好喝 发表于 2013-8-15 17:31
 楼主| zhanglangabce 发表于 2013-8-15 17:50
牛奶很好喝 发表于 2013-8-15 17:31
已经瞎了

错啦,,重发一下。。。
cc2602720520 发表于 2013-8-15 17:52
看着就晕
1354669803 发表于 2013-8-15 19:01
各种鄙视 看不到内容
youli023023 发表于 2013-8-15 20:20
目测我已经瞎了,严重鄙视啊
950022 发表于 2013-8-15 21:30
反白後依然不想看
哈哈 发表于 2013-8-16 21:39
亮瞎我的钛合眼
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-16 08:31

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表