超级玩家
 
- 贡献度
- 8
- 金元
- 8149
- 积分
- 847
- 精华
- 0
- 注册时间
- 2013-10-25
|
本帖最后由 死神来了么? 于 2021-12-12 15:40 编辑
还有一个想请教大大的。。。因为游戏版本升级的缘故(我还在用低版本的游戏),(低版本→高版本))看了下地址好像偏移了+5E20。。但我不知道要如何做偏移量。。。。例如我先把幸存队伍的人改成低版本。我需要在那个地方-5E20呢?
{ Game : Frostpunk.exe
Version:
Date : 2021-12-12
Author : Administrator
This script does blah blah blah
}
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscanmodule(INJECT,Frostpunk.exe,8B 03 89 85 98 00 00 00 48 8D 15 * * * * 49 8B CF E8 09) // should be unique
alloc(newmem,$1000,INJECT)
label(code)
label(return)
label(sss)
newmem:
mov [sss],rbx
code:
mov eax,[rbx]
mov [rbp+00000098],eax
jmp return
sss:
dd 0
INJECT:
jmp newmem
nop 3
return:
registersymbol(INJECT)
registersymbol(sss)
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
INJECT:
db 8B 03 89 85 98 00 00 00
unregistersymbol(sss)
unregistersymbol(INJECT)
dealloc(newmem)
dealloc(sss)
{
// ORIGINAL CODE - INJECTION POINT: Frostpunk.exe.text+1ABFFA0
Frostpunk.exe.text+1ABFF70: 0F 84 0D 03 00 00 - je Frostpunk.exe.text+1AC0283
Frostpunk.exe.text+1ABFF76: 48 8B 58 48 - mov rbx,[rax+48]
Frostpunk.exe.text+1ABFF7A: 48 63 40 50 - movsxd rax,dword ptr [rax+50]
Frostpunk.exe.text+1ABFF7E: 48 8D 0C C0 - lea rcx,[rax+rax*8]
Frostpunk.exe.text+1ABFF82: 48 8D 3C 8B - lea rdi,[rbx+rcx*4]
Frostpunk.exe.text+1ABFF86: 48 3B DF - cmp rbx,rdi
Frostpunk.exe.text+1ABFF89: 0F 84 71 01 00 00 - je Frostpunk.exe.text+1AC0100
Frostpunk.exe.text+1ABFF8F: 4C 8D 7B 04 - lea r15,[rbx+04]
Frostpunk.exe.text+1ABFF93: 4C 89 7D 78 - mov [rbp+78],r15
Frostpunk.exe.text+1ABFF97: 66 0F 1F 84 00 00 00 00 00 - nop word ptr [rax+rax+00000000]
// ---------- INJECTING HERE ----------
Frostpunk.exe.text+1ABFFA0: 8B 03 - mov eax,[rbx]
// ---------- DONE INJECTING ----------
Frostpunk.exe.text+1ABFFA2: 89 85 98 00 00 00 - mov [rbp+00000098],eax
Frostpunk.exe.text+1ABFFA8: 48 8D 15 F9 09 E9 00 - lea rdx,[Frostpunk.exe+29519A8]
Frostpunk.exe.text+1ABFFAF: 49 8B CF - mov rcx,r15
Frostpunk.exe.text+1ABFFB2: E8 09 99 35 FF - call Frostpunk.exe.text+E198C0
Frostpunk.exe.text+1ABFFB7: 85 C0 - test eax,eax
Frostpunk.exe.text+1ABFFB9: 74 20 - je Frostpunk.exe.text+1ABFFDB
Frostpunk.exe.text+1ABFFBB: E8 A0 77 81 FF - call Frostpunk.exe.text+12D7760
Frostpunk.exe.text+1ABFFC0: 48 8B 08 - mov rcx,[rax]
Frostpunk.exe.text+1ABFFC3: 4C 8B 81 88 00 00 00 - mov r8,[rcx+00000088]
Frostpunk.exe.text+1ABFFCA: 49 8B D7 - mov rdx,r15
}
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|