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 


How to set a breakpoint in an external process

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

Joined: 26 Nov 2012
Posts: 33
Location: Venezuela

PostPosted: Fri Feb 22, 2013 2:56 am    Post subject: How to set a breakpoint in an external process Reply with quote

Hi there, I need to set a breakpoint in some address within a external process.

It's just to change the value of EAX, but I don't know how to set a breakpoint, is there some Windows API to do that or something?

Any help would be appreciated.

_________________
Everybody lies.


Last edited by Screitor on Sat Feb 23, 2013 12:45 am; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Screitor
Cheater
Reputation: 1

Joined: 26 Nov 2012
Posts: 33
Location: Venezuela

PostPosted: Sat Feb 23, 2013 12:25 am    Post subject: Reply with quote

*bump*

Is that so easy?

C'mon, if CE can do it, I think I also could, the problem is that I don't know where to start.

_________________
Everybody lies.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat Feb 23, 2013 4:34 am    Post subject: Reply with quote

First write something to capture debug exceptions. That can be by attaching the windows debugger to the game or registering an exception handler, or hooking into the unhandled exception handler function, or interrupt hooks, etc...

Now, set the debug registers(Dr0-4 and dr7 to control it) or a software breakpoint (0xcc: int 3) at the specific spot and wait for an exception to trigger and that it is a single step exception(DRx), or a breakpoint (int 3)

Then do your stuff and to continue:
If debug registers and vista+:
Set the RF flag in the eflags register and just continue

If you are on XP or using int3:
Set the TF flag, remove the breakpoint, do a single step, set the breakpoint back and resume

_________________
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


Last edited by Dark Byte on Sat Feb 23, 2013 4:28 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Screitor
Cheater
Reputation: 1

Joined: 26 Nov 2012
Posts: 33
Location: Venezuela

PostPosted: Sat Feb 23, 2013 1:36 pm    Post subject: Reply with quote

Thanks a ton, I'll try it.
_________________
Everybody lies.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
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