- UID
- 287787
- 帖子
- 219
- 主題
- 94
- 精華
- 0
- 積分
- 381
- 楓幣
- 3070
- 威望
- 354
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 6
- GP
- 101
- 閱讀權限
- 30
- 在線時間
- 547 小時
- 註冊時間
- 2020-8-5
- 最後登入
- 2024-11-21
|
本帖最後由 麗麗 於 2021-11-8 09:02 編輯
是的,我这边游戏没更新,只能给你个老版本的 更新下就可以用了
这个是根据yutsaihsieh大佬 222版本发的那个写的,hook点是随便找了个游戏中会运行到的api- // TwMS v237.1 ICS SkillInjection
- [ENABLE]
- Alloc(SkillInjection_ICS_ForwardTable,1024)
- Alloc(temp,128)
- RegisterSymbol(SkillInjectionSW)
- Alloc(SkillInjectionSW,4)
- RegisterSymbol(SkillInjectionDelay)
- Alloc(SkillInjectionDelay,4)
- RegisterSymbol(Skill_Injection_ID_List)
- Alloc(Skill_Injection_ID_List,64)
- RegisterSymbol(LastSkillID)
- Alloc(LastSkillID,4)
- Alloc(Timer,4)
- Alloc(Count,4)
- RegisterSymbol(Count)
- Alloc(Skill_Injection_ID_Counter,4)
- RegisterSymbol(Skill_Injection_ID_Counter)
- Label(InitSkillInjection)
- Label(SkillInjection_ICS)
- Label(Chk_Status)
- Label(SkillInjection)
- Label(L1)
- Label(SkillInjectionExit)
- //--------------------------------------------------------------------------------//
- Skill_Injection_ID_List:
- //dd skillid below
- dd 01E84BF6 // 32001014 死神
- dd 01E9CEAA // 32100010 死神契約I
- dd 01E9F5C1 // 32110017 死神契約II
- dd 01EA1CD3 // 32120019 死神契約III
- dd 00 //end of list
- //--------------------------------------------------------------------------------//
- SkillInjectionDelay:
- DD 28
- SkillInjectionSW:
- DD 1
- Timer:
- DD 0
- Skill_Injection_ID_Counter:
- DD 0
- temp:
- DD 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
- SkillInjection_ICS_ForwardTable:
- cmp [esp],01A8A868
- jne USER32.ScreenToClient
- cmp [SkillInjectionSW],01
- jne USER32.ScreenToClient
- mov [esp],SkillInjection_ICS
- jmp USER32.ScreenToClient
- InitSkillInjection:
- cmp dword ptr [eax],0
- je SkillInjectionExit
- add eax,4
- inc [Skill_Injection_ID_Counter]
- jmp InitSkillInjection
- SkillInjection_ICS:
- pushad
- mov eax,Skill_Injection_ID_List
- cmp [Skill_Injection_ID_Counter],0
- je InitSkillInjection
- //------------------------------------//
- Chk_Status:
- mov eax,[041F8D30]
- test eax,eax
- je SkillInjectionExit
- mov eax,[050C3978]
- mov [LastSkillID],eax
- mov eax,[050BD6A0]
- cmp [eax+4],2
- jg SkillInjectionExit
- mov eax,[050BCAD0]
- mov eax,[eax+14]
- mov eax,[eax+000191D8+40]
- cmp eax,1
- jl SkillInjectionExit
- call 02E11170
- mov edx,eax
- sub edx,[Timer]
- cmp edx,[SkillInjectionDelay]
- jl SkillInjectionExit
- mov [Timer],eax
- mov ecx,[Skill_Injection_ID_Counter]
- mov [Count],ecx
- jmp SkillInjection
- //------------------------------------//
- SkillInjection:
- mov dword ptr [temp+08],00000000
- mov dword ptr [temp+10],00000000
- //------------------------------------
- mov edi,[041F8D30]
- mov ecx,[041F8A3C]
- lea eax,[temp]
- push eax
- call 03044850
- cmp dword ptr [temp+04],00
- mov eax,[eax+04]
- mov [temp+08],eax
- je L1
- push 00
- lea ecx,[temp]
- call 00492F70
- mov [temp+04],00000000
- //------------------------------------
- L1:
- mov ecx,[Count]
- dec ecx
- mov ecx,[Skill_Injection_ID_List+ecx*4]
- mov dword ptr [edi+00012368],ecx
- //------------------------------------
- mov ecx,[041F8A38]
- lea eax,[temp+10]
- push 01
- push 00
- push 00
- push 00
- push eax
- push [edi+00012368]
- mov [temp+10],00000000
- push [temp+08]
- call 009F1E50
- //------------------------------------
- push 00
- push 00
- push 00
- push 00
- push 00
- push 00
- push 01
- push 00
- push 00
- push 00
- push 00
- push 00
- push 00
- push 00
- push 00
- push 00
- push 00
- push 00
- push eax
- push [temp+10]
- mov ecx,edi
- call 02C4D840
- mov [edi+00012368],00000000
- dec [Count]
- cmp [Count],0
- jne SkillInjection
- //------------------------------------
- SkillInjectionExit:
- popad
- jmp 01A8A868
- 050BF274:
- DD SkillInjection_ICS_ForwardTable
- [DISABLE]
- 050BF274:
- DD USER32.ScreenToClient
複製代碼 |
|