| View previous topic :: View next topic |
| Author |
Message |
LongBeardedLion Expert Cheater
Reputation: 0
Joined: 10 Apr 2020 Posts: 174
|
Posted: Tue Jun 16, 2020 11:32 pm Post subject: How do i make a conditional breakpoint for a byte? |
|
|
So im trying to set a breakpoint that breaks if the 2nd byte stored in the address in ebp is 03.
So lets say my address in EBP points to a value of 12 03 00 1C.
The 2nd byte is 03 so its true.
I asked this sometime ago and the answer at the time was:
readBytes([EBP+2], 1, false) == 3
But it does not break.
Also i saw that for x64dbg the expression is:
ReadByte,Byte,byte(addr)
But still i could not figure it out.
Pls help. |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25840 Location: The netherlands
|
Posted: Wed Jun 17, 2020 12:22 am Post subject: |
|
|
readBytes(EBP+2,1)==3 _________________
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 |
|
 |
LongBeardedLion Expert Cheater
Reputation: 0
Joined: 10 Apr 2020 Posts: 174
|
Posted: Wed Jun 17, 2020 2:15 am Post subject: |
|
|
Thank you.
So what was that ",false" doing there?
Also what if its not the value inside the address, but the address itself.
For example if ECX == 12304050
And i need it to break if the 4th byte is 50 ^.
But not the byte written as a value inside the address. But the address itself.
Does the same apply to ESP?
Wont i need to use brackets ? [] For example:
[ESP+4]
I have an address 10204050 in ESP+4. And this 10204050 yet points to another value that is AA BB CC DD.
How do i make a breakpoint that detects that ESP + 4 has DD in the value inside its address? |
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4722
|
|
| Back to top |
|
 |
LongBeardedLion Expert Cheater
Reputation: 0
Joined: 10 Apr 2020 Posts: 174
|
Posted: Thu Jun 18, 2020 2:07 am Post subject: |
|
|
Thank you so much. I wrote it down.
I had no way before to break the stack values.
Do you know where i can see more info about conditional breakpoints? More examples, and complex problems?
For x64dbg there is almost nothing online. So i will make everything that requires breakpoints on cheat engine. |
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4722
|
Posted: Thu Jun 18, 2020 10:25 am Post subject: |
|
|
Conditional breakpoints are just Lua code. There are a few eccentricities involved (see celua.txt "debugging" section, particularly "debug variables" / "debug_getContext"), but it's mostly CE Lua. Learn Lua first (CE uses Lua 5.3), then learn the stuff CE adds to Lua by reading celua.txt. _________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
LongBeardedLion Expert Cheater
Reputation: 0
Joined: 10 Apr 2020 Posts: 174
|
Posted: Mon Jun 22, 2020 6:41 am Post subject: |
|
|
Thank you ParkourPenguin.
Im trying not to learn lua. Im trying to learn use c++, and practice it with this. So for example injections / calling functions etc i do all in c++.
Dont get me wrong. PErhaps im being ignorant. But i see no purpose in learning lua. I learned a few commands. And it seems a very simple and nice language to work with. But it has no other function. Afaik. I could be wrong. You tell me . I want to learn c++. So all the stuff that is supposed to be done in lua in cheat engine im doing in c++. Injections, calling functions, reading and writting to memory. I know it is harder but it is worthy it in the long run. And c++ is useful for everything as far as i was told.
Perhaps something is escaping me on lua. But from what i have seen its a language that is going a bit with less use as of late. But i can be wrong. |
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4722
|
Posted: Mon Jun 22, 2020 10:45 am Post subject: |
|
|
I don't think you're wrong. The only reason I know Lua is because CE uses it. Other people do use it for stuff like games and other software, but it's uncommon.
I suggested you learn Lua because you asked how conditional breakpoints worked in CE. If you want to write your own debugger in C++, good luck. _________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
|