 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
TheyCallMeTim13 Wiki Contributor
Reputation: 51
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Tue Jan 16, 2018 12:25 am Post subject: Error message with autoAssembleCheck |
|
|
Running the following code in the Lua Engine form I get the following out put.
Code: | local str = [===[aobScanModule(aobSupresserHook, mgsvtpp.exe, 49xxxxxx48xxxxxx48) // AOB trimmed
define(injSupresserHook, aobSupresserHook+1D)
registerSymbol(injSupresserHook)
alloc(memSupresserHook, 0x400, injSupresserHook)
label(ptrSupresserHook)
registerSymbol(ptrSupresserHook)
label(n_code)
label(o_code)
label(exit)
label(return)
// label(returnJmp)
memSupresserHook:
ptrSupresserHook:
dq 0
n_code:
mov [ptrSupresserHook],rbp
o_code:
test byte ptr [rbp+05],01
// je returnJmp
je injSupresserHook+10
exit:
jmp return
injSupresserHook:
jmp n_code
nop
return:
// injSupresserHook+10:
// returnJmp:
]===]
print(autoAssembleCheck(str)) |
Quote: | Error in line 20 (je 00000000+1D+10) :This instruction can't be compiled |
But In running this code I get no error:
Code: | local str = [===[aobScanModule(aobSupresserHook, mgsvtpp.exe, 49xxxxxx48xxxxxx48) // AOB trimmed
define(injSupresserHook, aobSupresserHook+1D)
registerSymbol(injSupresserHook)
alloc(memSupresserHook, 0x400, injSupresserHook)
label(ptrSupresserHook)
registerSymbol(ptrSupresserHook)
label(n_code)
label(o_code)
label(exit)
label(return)
label(returnJmp)
memSupresserHook:
ptrSupresserHook:
dq 0
n_code:
mov [ptrSupresserHook],rbp
o_code:
test byte ptr [rbp+05],01
je returnJmp
//je injSupresserHook+10
exit:
jmp return
injSupresserHook:
jmp n_code
nop
return:
injSupresserHook+10:
returnJmp:
]===]
print(autoAssembleCheck(str)) |
And if I change "define(injSupresserHook, aobSupresserHook+1D)" to "define(injSupresserHook, aobSupresserHook)" then the first one checks ok as well, and both of these check ok with the Auto Assembler form even injecting.
So is this a bug or am I missing some thing?
_________________
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 467
Joined: 09 May 2003 Posts: 25700 Location: The netherlands
|
Posted: Tue Jan 16, 2018 2:31 am Post subject: |
|
|
i'm not sure but i think define's don't work with aobscan or other defines
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
TheyCallMeTim13 Wiki Contributor
Reputation: 51
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Tue Jan 16, 2018 3:23 am Post subject: |
|
|
Well like I said, it all works fine in the Auto Assembler form. But I have not tried autoAsseble, and my work around to using autoAssembleCheck was using some thing like the code below, but now I have found a better spot to hook a base for the value's structure any why (just a quick address hook script).
Code: | local str = [===[aobScanModule(aobSupresserHook, mgsvtpp.exe, 49xxxxxx48xxxxxx48) // AOB trimmed
define(injSupresserHook, aobSupresserHook+1D)
registerSymbol(injSupresserHook)
define(injSupresserHookReturn, injSupresserHook+10)
alloc(memSupresserHook, 0x400, injSupresserHook)
label(ptrSupresserHook)
registerSymbol(ptrSupresserHook)
label(n_code)
label(o_code)
label(exit)
label(return)
label(returnJmp)
memSupresserHook:
ptrSupresserHook:
dq 0
n_code:
mov [ptrSupresserHook],rbp
o_code:
test byte ptr [rbp+05],01
je returnJmp
//je injSupresserHook+10
exit:
jmp return
injSupresserHook:
jmp n_code
nop
return:
injSupresserHookReturn:
returnJmp:
]===]
print(autoAssembleCheck(str)) |
_________________
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|