- UID
- 278360
- 帖子
- 150
- 主題
- 34
- 精華
- 0
- 積分
- 138
- 楓幣
- 370
- 威望
- 134
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 0
- GP
- 626
- 閱讀權限
- 20
- 在線時間
- 85 小時
- 註冊時間
- 2020-3-2
- 最後登入
- 2022-4-5
|
本帖最後由 eghuai 於 2020-4-26 08:20 編輯
//TwMs v224.1 CRC 楓之谷日誌函數轉發
//功效:把楓之谷內的信息日誌使用tcp協議轉發到127.0.0.1:8100獲取楓之谷本身的日誌信息
//用途:開發功能
[ENABLE]
registersymbol(resetChannel)
alloc(resetChannel,512)
registersymbol(LogPoint)
alloc(LogPoint,4)
registersymbol(Hsocket)
alloc(Hsocket,4)
registersymbol(sockaddr)
alloc(sockaddr,512)
registersymbol(tempstring)
alloc(tempstring,4096)
registersymbol(whoCall)
alloc(whoCall,4)
sockaddr:
db 02 00 1F A4 7F 00 00 01 00 00 00 00 00 00 00 00
resetChannel:
mov [LogPoint],eax
push eax
mov eax,[esp+4]
mov [whoCall],eax
pop eax
pushad
mov eax,[LogPoint]
mov eax,[eax]
mov [LogPoint],eax
push #512
push [LogPoint]
PUSH tempstring+4
call RtlMoveMemory
mov eax,[whoCall]
mov [tempstring],eax
push #6
push #1
push #2
call socket
mov [Hsocket],eax
push #16
push sockaddr
push [Hsocket]
call connect
push 00
push #512
push tempstring//[LogPoint]
push [Hsocket]
call send
push [Hsocket]
call closesocket
popad
ret
0047E6D6:
jmp resetChannel
[DISABLE]
0047E6D6:
ret
exe程式就不帶上了
|
-
總評分: 楓幣 + 85
威望 + 10
鑰匙 + 5
GP + 19
查看全部評分
|