Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[HELP] FIND pointer with AOB

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
noraneiei
How do I cheat?
Reputation: 0

Joined: 06 Sep 2022
Posts: 5

PostPosted: Fri Sep 09, 2022 7:58 am    Post subject: [HELP] FIND pointer with AOB Reply with quote

Hello. I've been watching YouTube and reading many posts. But I still don't understand it. where did i go wrong I need to find pointer with AOB

Thank you for help sir

Code:

  This script does blah blah blah
}

[ENABLE]

aobscanmodule(INJECT,GameAssembly.dll,83 79 20 03 0F 94 C0) // should be unique
alloc(newmem,$1000,INJECT)
alloc(base_quest,8)

label(code)
label(return)
registersymbol(base_quest)

base_quest:
dq 0

newmem:

code:
  mov [base_quest],rcx
  cmp dword ptr [rcx+20],03
  sete al
  jmp return

INJECT:
  jmp newmem
  nop 2
return:
registersymbol(INJECT)
registersymbol(base_quest)

[DISABLE]

INJECT:
  db 83 79 20 03 0F 94 C0

unregistersymbol(INJECT)
unregistersymbol(base_quest)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: System.Xml.Serialization.TypeData.get_IsListType

GameAssembly.dll.il2cpp+BAFF74: 0F 94 C0     - sete al
GameAssembly.dll.il2cpp+BAFF77: C3           - ret
GameAssembly.dll.il2cpp+BAFF78: CC           - int 3
GameAssembly.dll.il2cpp+BAFF79: CC           - int 3
GameAssembly.dll.il2cpp+BAFF7A: CC           - int 3
GameAssembly.dll.il2cpp+BAFF7B: CC           - int 3
GameAssembly.dll.il2cpp+BAFF7C: CC           - int 3
GameAssembly.dll.il2cpp+BAFF7D: CC           - int 3
GameAssembly.dll.il2cpp+BAFF7E: CC           - int 3
GameAssembly.dll.il2cpp+BAFF7F: CC           - int 3
// ---------- INJECTING HERE ----------
System.Xml.Serialization.TypeData.get_IsListType: 83 79 20 03  - cmp dword ptr [rcx+20],03
// ---------- DONE INJECTING  ----------
GameAssembly.dll.il2cpp+BAFF84: 0F 94 C0     - sete al
GameAssembly.dll.il2cpp+BAFF87: C3           - ret
GameAssembly.dll.il2cpp+BAFF88: CC           - int 3
GameAssembly.dll.il2cpp+BAFF89: CC           - int 3
GameAssembly.dll.il2cpp+BAFF8A: CC           - int 3
GameAssembly.dll.il2cpp+BAFF8B: CC           - int 3
GameAssembly.dll.il2cpp+BAFF8C: CC           - int 3
GameAssembly.dll.il2cpp+BAFF8D: CC           - int 3
GameAssembly.dll.il2cpp+BAFF8E: CC           - int 3
GameAssembly.dll.il2cpp+BAFF8F: CC           - int 3
}



123.png
 Description:
 Filesize:  169.29 KB
 Viewed:  1284 Time(s)

123.png


Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 334
Location: Somewhere....

PostPosted: Sun Sep 11, 2022 12:31 am    Post subject: Reply with quote

use the "Pointer" option, set the address to base_quest without the square brackets, and set the first offset to 20 as following.


Pointer.jpg
 Description:
Pointer
 Filesize:  19.37 KB
 Viewed:  1215 Time(s)

Pointer.jpg


Back to top
View user's profile Send private message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Sun Sep 11, 2022 2:39 am    Post subject: Reply with quote

i think that rcx is being overwritten and it giving you 0 or in other case NULL
_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4291

PostPosted: Sun Sep 11, 2022 11:11 am    Post subject: Reply with quote

The game must run that code for that code injection to do anything. e.g. if the original instruction is only run when you press a button, you'll need to press the button to populate base_quest

Other than that, not sure... aob not unique? Maybe rcx really is 0 and the game is handling the exception?

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites