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 


Monitor the stack? (trace back caller)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Gi@nnis
Cheater
Reputation: 1

Joined: 26 Oct 2013
Posts: 32
Location: Greece

PostPosted: Sun May 04, 2014 3:10 am    Post subject: Monitor the stack? (trace back caller) Reply with quote

I was wandering if it's possible to monitor the top of the stack. An easy why, not writing an injection code (I know how to do that).

I'm looking for something like "Find out what address this instruction accesses", but for the stack (the top of the stack).

I want to trace back where this function gets called from.

I currently use "Break and trace instructions" with maximum count 1 and save stack snapshots.

The problem with this method is that it only records the first call, and it's a bit more complicated that just right click.

If there is an other way to trace back the caller please lets me know.

Thanks in advance.
Back to top
View user's profile Send private message
eax.qbyte
Advanced Cheater
Reputation: 3

Joined: 25 Jun 2011
Posts: 59
Location: CEDisasmView

PostPosted: Sun May 04, 2014 5:32 am    Post subject: Reply with quote

Not always but generally(always when tracing through windows APIs) this method should work.
Pay attention to 'Memory-viewer->Stack sub-window' If you choose stack-trace from right-click menu it changes to the mode that shows return addresses and parameters from the calls above. Double click on one of return addresses shown in that sub-window to view it in dis-assembly sub-window.



stacktrace.jpg
 Description:
 Filesize:  311.96 KB
 Viewed:  9929 Time(s)

stacktrace.jpg



_________________
My special thanx to Cheat Engine and its developers. It helps me do the hard and boring but valuable process of understanding the code, easily and with fun.


Last edited by eax.qbyte on Sun May 04, 2014 5:48 pm; edited 5 times in total
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Sun May 04, 2014 8:44 am    Post subject: Reply with quote

I've never seen professional code that doesn't use standard stack frames. You should be able to completely unwind the stack at any point by looking at the frame pointer/ebp and working backwards through return addresses.
_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
Gi@nnis
Cheater
Reputation: 1

Joined: 26 Oct 2013
Posts: 32
Location: Greece

PostPosted: Mon May 05, 2014 1:50 am    Post subject: Thank Reply with quote

Thanks, I didn't even know that even existed.
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