- My AOB scan address is unique
- I make sure to enable "scan all memory"
- I make sure I'm not putting double-quotes in the address
- When I create the script it works fine but on restarting the game it can never find the address
- I've tried after attaching the debugger. Makes no difference.
Here's the full script that I'm using:
Code: Select all
{ Game : CargoCommander.exe
Version:
Date : 2021-08-21
Author : test
This script does blah blah blah
}
[ENABLE]
aobscan(nocapsdec, 2B CA 89 88 38 02 00 00 0F B6 47 30 85 C0 75 07) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
mov ecx, 0XFFF
code:
mov [eax+00000238],ecx
jmp return
nocapsdec:
jmp newmem
nop 3
return:
registersymbol(nocapsdec)
[DISABLE]
nocapsdec:
db 2B CA 89 88 38 02 00 00
unregistersymbol(nocapsdec)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: 066599D1
066599B0: E8 83 75 94 FF - call 05FA0F38
066599B5: 00 00 - add [eax],al
066599B7: 00 55 8B - add [ebp-75],dl
066599BA: EC - in al,dx
066599BB: 57 - push edi
066599BC: 83 EC 04 - sub esp,04
066599BF: 8B 7D 08 - mov edi,[ebp+08]
066599C2: 8B 05 94 0A F2 05 - mov eax,[05F20A94]
066599C8: 8B 88 38 02 00 00 - mov ecx,[eax+00000238]
066599CE: 8B 57 14 - mov edx,[edi+14]
// ---------- INJECTING HERE ----------
066599D1: 2B CA - sub ecx,edx
066599D3: 89 88 38 02 00 00 - mov [eax+00000238],ecx
// ---------- DONE INJECTING ----------
066599D9: 0F B6 47 30 - movzx eax,byte ptr [edi+30]
066599DD: 85 C0 - test eax,eax
066599DF: 75 07 - jne 066599E8
066599E1: C7 47 28 14 00 00 00 - mov [edi+28],00000014
066599E8: 8B 05 94 0A F2 05 - mov eax,[05F20A94]
066599EE: 83 EC 0C - sub esp,0C
066599F1: 50 - push eax
066599F2: 39 00 - cmp [eax],eax
066599F4: E8 87 A6 F1 FF - call 06574080
066599F9: 83 C4 10 - add esp,10
}