TA的每日心情 | 奋斗 2020-6-5 22:18 |
---|
签到天数: 22 天 [LV.4]偶尔看看III
|
首先看下目标网游的聊天CALL代码:- MOV ECX,DWORD PTR DS:[6FD9F0]
- PUSH 1
- PUSH 1
- PUSH 3E8
- PUSH EBP ’ 内容长度
- PUSH ESI ’ 内容指针 [6FDA00]+20010
- PUSH 0
- CALL 004AEC50
复制代码 CALL调用核心代码:
- Option Explicit
- Dim pid As Long
- Dim hProcess As Long
- Dim wgbcw As New clsASM
- Private Sub Command1_Click() '构造聊天结构并调用
- Dim T() As Byte, T1() As Byte
- Dim P As Long, txtLen As Long
- txtLen = LenB(Text1)
- ReDim T(12 + txtLen) As Byte '指定动态数组的长度
- ReDim T1(txtLen) As Byte
- P = VarPtr(T(0)) '取字符数组地址
- ZeroMemory T(0), UBound(T) + 1
- T(4) = &HD6
- T(5) = &HB
- T1 = StrConv(Text1, vbFromUnicode)
- CopyMemory ByVal (P + 12), ByVal StrPtr(T1), txtLen
- SendText P, UBound(T) + 1
- End Sub
- Function SendText(nrP As Long, nrLen As Long) As Long
- '聊天内容结构 00 00 00 00 D6 0B 00 00 00 00 00 00 35 35 35 35 ....?......5555
- ' 35 35 35 35 35 35 555555
- Dim esi As Long '聊天结构指针
- Const addr = &H4AEC50
- Call Loadpid
- With wgbcw
- esi = .ReadIntMemory(hProcess, &H6FDA00) + &H20010
- .WriteByteArray hProcess, esi, nrP, nrLen
- .Pushad
- .Mov_ECX_DWORD_Ptr &H6FD9F0
- .Push 1
- .Push 1
- .Push &H3E8
- .Push nrLen
- .Push esi
- .Push 0
- .Mov_EBX addr
- .Call_EBX
- .Popad
- .Ret
- .Run_ASM pid
- End With
- End Function
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
x
|