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 


Tracing question

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

Joined: 08 Dec 2009
Posts: 119
Location: In a box

PostPosted: Thu Jul 17, 2014 2:04 am    Post subject: Tracing question Reply with quote

I have some assembly code that is ran by many threads constantly, and when I edit it a certain way it allows me to see through walls. I'm not sure why, but I'm sure I could learn more about why this is happening by seeing the call stack. When I edit it, not only does it let me see through walls, but it also tends to create other unintended side effects and crash. What is the best way to get the call stack? I can't use breakpoints because so many different things access the address I'm talking about which is probably why it is becoming buggy and crashing.
Back to top
View user's profile Send private message
661089799107
Expert Cheater
Reputation: 3

Joined: 25 Jan 2009
Posts: 186

PostPosted: Thu Jul 17, 2014 12:14 pm    Post subject: Reply with quote

I would do a code injection on that instruction, and then check the thread ID with GetCurrentThreadId.

Code:

call GetCurrentThreadId
cmp eax, 0x0123
jne wrong_thread


Maybe wrong_thread would execute the original code before returning, otherwise jump straight back.

You may also be able to do it with a conditional breakpoint.

https://en.wikipedia.org/wiki/Win32_Thread_Information_Block

Read either FS:[0x28] (x86), or GS:[0x28] (x64) and check the thread id.
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