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] how would i read edx/ecx values from certain point?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
RAKO
Master Cheater
Reputation: 0

Joined: 26 Jun 2006
Posts: 454

PostPosted: Fri Sep 12, 2008 6:21 am    Post subject: [help] how would i read edx/ecx values from certain point? Reply with quote

ok I want to make a little program for maple story and anyway there is info that I want to find out and all I need is the edx and ecx values but I can't change the memory. I know ce does it in the form:
formFoundcodeListExtraUnit

but I'm not that great with delphi. so can someone tell me how to do this in either c++ or c#?

_________________
Dark Byte wrote:
Who knows, perhaps i'm a maple gm!!!!
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Sep 12, 2008 8:28 am    Post subject: Reply with quote

Do a codecave then move each of the values you want into buffers. You will probably need to use inline ASM either way but make sure not to make any function calls before you move them into buffers else you will end up modifying EAX/ECX/EDX.

Or if you can bypass it.. DebugActiveProcess/GetThreadContext. Not sure what you mean by you can't change memory. You won't be able to read anything without modifying memory or acting as a debugger and/or breakpointing at a certain VA.
Back to top
View user's profile Send private message
GMZorita
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Mar 2007
Posts: 1361

PostPosted: Fri Sep 12, 2008 10:57 am    Post subject: Reply with quote

unsigned myadd = 1;
unsigned myreturn = myaddy+5;
int ecxval;

void mycall()
{
OutputDebugString(IntToHex((int)ecxval,8).c_str());
}

void mycodecave()
{

_asm{
mov [ecxval],ecx
call mycall
jmp myreturn
}
}


Make the jump and your done.

_________________
Gone


Last edited by GMZorita on Sat Sep 13, 2008 6:02 am; edited 1 time in total
Back to top
View user's profile Send private message
Zand
Master Cheater
Reputation: 0

Joined: 21 Jul 2006
Posts: 424

PostPosted: Fri Sep 12, 2008 11:26 pm    Post subject: Reply with quote

If you're making it jump back to myreturn, when is OutputDebugString called?
Back to top
View user's profile Send private message
GMZorita
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Mar 2007
Posts: 1361

PostPosted: Sat Sep 13, 2008 6:02 am    Post subject: Reply with quote

Zand wrote:
If you're making it jump back to myreturn, when is OutputDebugString called?

lol sorry my mistake fixed.

_________________
Gone
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat Sep 13, 2008 11:55 am    Post subject: Reply with quote

Read the thread properly..

Quote:
ok I want to make a little program for maple story and anyway there is info that I want to find out and all I need is the edx and ecx values but I can't change the memory.
Back to top
View user's profile Send private message
GMZorita
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Mar 2007
Posts: 1361

PostPosted: Sat Sep 13, 2008 12:12 pm    Post subject: Reply with quote

Slugsnack wrote:
Read the thread properly..

Quote:
ok I want to make a little program for maple story and anyway there is info that I want to find out and all I need is the edx and ecx values but I can't change the memory.

You talked about mem edit also.
Slugsnack wrote:
[color=blue]Do a codecave then move each of the values you want into buffers. You will probably need to use inline ASM either way but make sure not to make any function calls before you move them into buffers else you will end up modifying EAX/ECX/EDX.


Its way harder to make it w/o mem edit goodluck.

_________________
Gone
Back to top
View user's profile Send private message
RAKO
Master Cheater
Reputation: 0

Joined: 26 Jun 2006
Posts: 454

PostPosted: Sun Sep 14, 2008 12:51 am    Post subject: Reply with quote

ok so it is hard to make without mem editing. but i believe it is done in cheat engine and I know which form it is done in so I will have to try. I think I have other options as well. thanks anyway.
_________________
Dark Byte wrote:
Who knows, perhaps i'm a maple gm!!!!
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Sep 14, 2008 1:47 pm    Post subject: Reply with quote

GMZorita wrote:
Slugsnack wrote:
Read the thread properly..

Quote:
ok I want to make a little program for maple story and anyway there is info that I want to find out and all I need is the edx and ecx values but I can't change the memory.

You talked about mem edit also.


Quote:
Or if you can bypass it.. DebugActiveProcess/GetThreadContext
Back to top
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Sun Sep 14, 2008 5:33 pm    Post subject: Reply with quote

Hardware breakpoints. (what is the status on these in current GG?).
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish
Back to top
View user's profile Send private message
rapion124
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Mar 2007
Posts: 1095

PostPosted: Mon Sep 15, 2008 3:22 pm    Post subject: Reply with quote

Why can't you edit memory? Is it because of a CRC? If so, then you can just restore the original bytes in your codecave. That should allow you to get the ecx/edx value without getting detected. Only problem is you have to rewrite your jmp everytime.
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Mon Sep 15, 2008 4:53 pm    Post subject: Reply with quote

rapion124 wrote:
Why can't you edit memory? Is it because of a CRC? If so, then you can just restore the original bytes in your codecave. That should allow you to get the ecx/edx value without getting detected. Only problem is you have to rewrite your jmp everytime.
Yes, it's because of CRC. He's actually trying to do "CAM vac" for MapleStory.
_________________
Back to top
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Mon Sep 15, 2008 8:50 pm    Post subject: Reply with quote

rapion124 wrote:
Why can't you edit memory? Is it because of a CRC? If so, then you can just restore the original bytes in your codecave. That should allow you to get the ecx/edx value without getting detected. Only problem is you have to rewrite your jmp everytime.


CRC is not respective of code stream. It just reads continuously through the code memory. Therefore, your original jump/call to your codecave will change the CRC value and poof.

_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish
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