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 


automatic scanning technique (question)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Apr 16, 2008 9:05 pm    Post subject: automatic scanning technique (question) Reply with quote

I thought of a great idea for a dll but I'm trying to figure out how to do it. Basically I want to inject a dll into a process and then it automatically scans for the address being used (I'll explain). Ok, say you open up CE and MS and attach to MS. You then scan for your HP. You then lose some HP and scan for a changed value and keep doing that till you get an address. I was wondering how I could program a dll to automatically see that you're getting hit (for example) and then find the address where your HP is stored or w/e.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Apr 17, 2008 12:01 am    Post subject: Reply with quote

If the DLL can already determine you getting hit, whats the point of making it scan for anything? Your idea is kinda defeating itself with your logic of how you want it to work. Mad

If anything, attempted to locate the health address by other means, possibly an array of bytes leading up to a pointer or something. Then you could scan for the AoB when the DLL is first injected and so on.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 472

Joined: 09 May 2003
Posts: 25871
Location: The netherlands

PostPosted: Thu Apr 17, 2008 6:53 am    Post subject: Reply with quote

well, if his dll doesn't look at the health address , but looks at the health indicater on the screen and then uses a OCR algorithm to read that value it should work
_________________
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
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Apr 17, 2008 7:30 am    Post subject: Reply with quote

Dark Byte wrote:
well, if his dll doesn't look at the health address , but looks at the health indicater on the screen and then uses a OCR algorithm to read that value it should work


Think that would be a little overboard to 'automatically' find something lol.

I don't play Maple, so I'm not sure how the memory is setup, but from what I've seen on various posts, everything has a pointer to it. With that, the pointer should contain code that can be used as a 'signature' to scan for via AoB scans which you can make a memory scanner to locate the AoB. I've released code to do it based on some things others have made in the past, as well as some others posting how to do it too.

Constantly scanning the screen to do an OCR method seems a bit overboard and in some cases would probably be a poor method to choose from due to lag and not being able to always scan for the exact image you need. Would be like pixel detection for certain colors and such.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Thu Apr 17, 2008 9:03 am    Post subject: Reply with quote

Wiccaan wrote:
If the DLL can already determine you getting hit, whats the point of making it scan for anything? Your idea is kinda defeating itself with your logic of how you want it to work. Mad

If anything, attempted to locate the health address by other means, possibly an array of bytes leading up to a pointer or something. Then you could scan for the AoB when the DLL is first injected and so on.


Get what you're saying. Like to know that the person got hit it would have to know hte address getting called?

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Apr 17, 2008 2:40 pm    Post subject: Reply with quote

oib111 wrote:
Wiccaan wrote:
If the DLL can already determine you getting hit, whats the point of making it scan for anything? Your idea is kinda defeating itself with your logic of how you want it to work. Mad

If anything, attempted to locate the health address by other means, possibly an array of bytes leading up to a pointer or something. Then you could scan for the AoB when the DLL is first injected and so on.


Get what you're saying. Like to know that the person got hit it would have to know hte address getting called?


Yeah, other then that the only method you have is basically something on the lines of what DB said, with a pixel detection type thing. But thats not always accurate and with the way Maple is setup, theres about 4 billion colors on the screen at once to stimulate the little kids brains lol. So you might never get an accurate read on the pixels.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Thu Apr 17, 2008 3:20 pm    Post subject: Reply with quote

Find HP addres once, right click > find what rights to this >
A find the pointer to HP
or B Add the code to the code list and right click > find what addresses this code writes to
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Apr 17, 2008 4:17 pm    Post subject: Reply with quote

HalfPrime wrote:
Find HP addres once, right click > find what rights to this >
A find the pointer to HP
or B Add the code to the code list and right click > find what addresses this code writes to


Uh.. I'm pretty sure he knows how to use Cheat Engine, that wasn't the point of this thread.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Thu Apr 17, 2008 4:35 pm    Post subject: Reply with quote

Guess I don't know what he's asking for, then. =O

EDIT:
So, at the end, you want to just know what the HP addy is? And you want to do that via seeing what addy is being used when the HP changing line is called?
The only problem with that is that you'd need to know what that line is and to find that, you'd need to know what the addy for HP is.
You may be able to find that certain line with an AoB to make it dynamic. But I think the only way to find what value it's writing to (grabbing registers, etc) would be to attach to it.
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 programming 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