skynet888 !BEWARE! Deletes post on answer
Reputation: 1
Joined: 12 Apr 2021 Posts: 105
|
Posted: Thu Dec 03, 2026 6:05 am Post subject: set data access breakpoint on the address esp+04 immediate |
|
|
As shown in the screenshot: I want to set a data access breakpoint on the address esp+04 immediately after the instruction mov [esp+04],eax executes. I wrote a Lua script for this, but it has a bug. It causes the Lua output window to spam nonstop, and may crash the target process or Cheat Engine.
| Code: | local nextAddr = 0x6933BACB
local function onAccess()
print(string.format("onAccess:EIP=%X,Addr=%X", EIP, ESP + 4))
debug_removeBreakpoint(ESP + 4, 4)
debug_continueFromBreakpoint(co_run)
end
local function onNext()
debug_removeBreakpoint(nextAddr, 1)
debug_setBreakpoint(ESP + 4, 4, bptAccess, bpmDebugRegister, onAccess)
debug_continueFromBreakpoint(co_run)
end
debug_setBreakpoint(nextAddr, 1, bptExecute, bpmDebugRegister, onNext)
|
[/quote][/code]
| Description: |
|
| Filesize: |
4.98 KB |
| Viewed: |
75 Time(s) |

|
|
|