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 


AOB Scan does not find the correct memory region

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
careca777
Expert Cheater
Reputation: 0

Joined: 27 Jul 2013
Posts: 121

PostPosted: Tue Dec 01, 2020 11:25 am    Post subject: AOB Scan does not find the correct memory region Reply with quote

Hi experts, im having an issue where i do an AOB scan, but the address it returns is very different from the one i want. Interestingly, if i do a manual search with the same array of bytes, it does find the correct spot, wildcards included and all that.

The code im using:

Code:

[ENABLE]
aobscan(CarBase,42 00 00 00 00 D1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00)
registersymbol(CarBase)

[DISABLE]
unregistersymbol(CarBase)


With that i get the pointer and use it, should return
1CB3292F300
but its returning
1CC8F8F4005

Any ideas?
Thanks in advance.



Screenshot 2020-12-01 171531.png
 Description:
 Filesize:  13.41 KB
 Viewed:  3355 Time(s)

Screenshot 2020-12-01 171531.png



Screenshot 2020-12-01 171507.png
 Description:
 Filesize:  9.05 KB
 Viewed:  3355 Time(s)

Screenshot 2020-12-01 171507.png




Last edited by careca777 on Fri Dec 04, 2020 7:54 am; edited 2 times in total
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 98

Joined: 14 Jul 2007
Posts: 3340

PostPosted: Wed Dec 02, 2020 11:31 am    Post subject: Reply with quote

The code you posted (wrong) is not the same as you have on the picture (good).
Back to top
View user's profile Send private message
careca777
Expert Cheater
Reputation: 0

Joined: 27 Jul 2013
Posts: 121

PostPosted: Wed Dec 02, 2020 1:05 pm    Post subject: Reply with quote

Hi, thanks for the reply, i edited the post and changed the line, but the line itself is not important, the line is not the issue, i can use the line inside the memory viewer searcher and it finds the region i need.
What i intend to do is make it automatic, and retrieve the address where the AOB was found, but instead, when it locks/finds the address, it has nothing to do with what im searching at all, it returns a result miles away in terms of addresses. I tried many lines that i think are unique, but somehow it always returns the wrong address.

PS: when you say wrong, do you mean it's different between them, or do you mean there is a syntax error or something like that? Is the wildcard the "?" ?
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 98

Joined: 14 Jul 2007
Posts: 3340

PostPosted: Wed Dec 02, 2020 1:37 pm    Post subject: Reply with quote

Again, you are scanning for the wrong bytes in that code.
Why would you expect it to find the right address?

You search for B when you want to find A.
Back to top
View user's profile Send private message
careca777
Expert Cheater
Reputation: 0

Joined: 27 Jul 2013
Posts: 121

PostPosted: Wed Dec 02, 2020 1:43 pm    Post subject: Reply with quote

Ok, new development, this should restrict the search, but now it doesn't even give me an odd address, it just gives nothing at all!
What am i doing wrong here?

If i remove the region bit and leave it to search everything, it gives me an odd address, last run was: D100000000422A
This is very far from the expected 2F40F3CF893

The line is unique and it finds it in the correct place through the byte search/array, now why doesn't it return the correct address through AOB?

All i want is the address where it was found.


Last edited by careca777 on Thu Dec 03, 2020 1:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
careca777
Expert Cheater
Reputation: 0

Joined: 27 Jul 2013
Posts: 121

PostPosted: Thu Dec 03, 2020 12:04 pm    Post subject: Reply with quote

Bump
Back to top
View user's profile Send private message
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Thu Dec 03, 2020 1:14 pm    Post subject: Reply with quote

@Csimbi disappeared when you typed the name of the game. Very Happy Very Happy
It; If it is a multiplayer game, CEF will not answer this question.
Correct the game names as "Game.exe" and try again.
(Correct previous pictures as well Wink )
Back to top
View user's profile Send private message
careca777
Expert Cheater
Reputation: 0

Joined: 27 Jul 2013
Posts: 121

PostPosted: Thu Dec 03, 2020 1:58 pm    Post subject: Reply with quote

Understood.
Back to top
View user's profile Send private message
careca777
Expert Cheater
Reputation: 0

Joined: 27 Jul 2013
Posts: 121

PostPosted: Sat Dec 05, 2020 3:27 am    Post subject: Reply with quote

Bump
Back to top
View user's profile Send private message
careca777
Expert Cheater
Reputation: 0

Joined: 27 Jul 2013
Posts: 121

PostPosted: Tue Dec 08, 2020 1:30 pm    Post subject: Reply with quote

Bump. Still looking for a solution to this. AOB seems to find the bytes, but doesnt give me the address found into a pointer.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4722

PostPosted: Tue Dec 08, 2020 2:00 pm    Post subject: Reply with quote

You're doing something wrong. I'm not going to sift through >20 bytes to tell you how you're wrong. Maybe check the region types you're scanning through (writable, executable, CoW).

aobscans for writable data is unreliable IMO. Try pointers or code injection (search "injection copy").

_________________
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
careca777
Expert Cheater
Reputation: 0

Joined: 27 Jul 2013
Posts: 121

PostPosted: Tue Dec 08, 2020 3:33 pm    Post subject: Reply with quote

I leave this image for your appreciation.
Why am i getting two different return addresses?
Despite the region types, if i find only one address through the "normal" search method, why doesn't AOB give me the same address?
What can i possibly be doing wrong? Point me in a direction i can work on.

Code:
[ENABLE]
aobScan(carbase,00 00 ?? 42 00 00 00 00 D1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00)
registersymbol(carbase)

[DISABLE]
unregisterSymbol("carbase")


https://ibb.co/q0YzKsh
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4722

PostPosted: Tue Dec 08, 2020 5:42 pm    Post subject: Reply with quote

Put carbase in the address field. It's not a pointer since you're not dereferencing anything to get to the end address.

You can see in the found list that the 8-byte value at the address 2BF4CE388C0 is 0x422A0000, so it seems like it's working just fine.

_________________
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
careca777
Expert Cheater
Reputation: 0

Joined: 27 Jul 2013
Posts: 121

PostPosted: Wed Dec 09, 2020 5:30 am    Post subject: Reply with quote

Thank you ParkourPenguin, that was it! I assumed placing it in the pointer part would make the reference, but it has to be in the address, and now shows the correct address.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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