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

Method remove_hxbp_callback

windows/debug/localdbg.py:221–234  ·  view source on GitHub ↗
(self, exc)

Source from the content-addressed store, hash-verified

219 return windef.EXCEPTION_CONTINUE_EXECUTION
220
221 def remove_hxbp_callback(self, exc):
222 with self.NewCurrentException(exc):
223 exp_code = self.get_exception_code()
224 context = self.get_exception_context()
225 exp_addr = context.pc
226 hxbp_used = self.remove_hxbp_in_context(context, self.data)
227 windows.current_process.write_memory(exp_addr, b"\x90")
228 # Raising in the VEH is a bad idea..
229 # So better give the information to triggerer..
230 if hxbp_used is not None:
231 self.get_exception_context().Eax = exp_addr
232 else:
233 self.get_exception_context().Eax = 0
234 return windef.EXCEPTION_CONTINUE_EXECUTION
235
236 def setup_hxbp_in_context(self, context, addr):
237 for i in range(4):

Callers

nothing calls this directly

Calls 5

NewCurrentExceptionMethod · 0.95
get_exception_codeMethod · 0.95
get_exception_contextMethod · 0.95
write_memoryMethod · 0.45

Tested by

no test coverage detected