MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / get_ret_addr

Method get_ret_addr

windows/debug/breakpoints.py:229–232  ·  view source on GitHub ↗

Get the return address of the current target, only valid in the trigger() function.

(self, dbg, exception)

Source from the content-addressed store, hash-verified

227 dbg.add_bp(FunctionRetBP(return_addr, self), target=dbg.current_process)
228
229 def get_ret_addr(self, dbg, exception):
230 """Get the return address of the current target, only valid in the trigger() function."""
231 cproc = dbg.current_process
232 return dbg.current_process.read_ptr(dbg.current_thread.context.sp)
233
234
235 def ret_trigger(self, dbg, exception):

Callers 1

break_on_retMethod · 0.95

Calls 1

read_ptrMethod · 0.80

Tested by

no test coverage detected