InfoSec Person | Alt-Account#2

https://snee.la/

  • 0 Posts
  • 6 Comments
Joined 1 year ago
cake
Cake day: September 28th, 2023

help-circle




  • Excellent question!

    Before replacing the instruction with INT 3, the debugger keeps a note of what instruction was at that point in the code. When the CPU encounters INT 3, it hands control to the debugger.

    When the debugging operations are done, the debugger replaces the INT 3 with the original instruction and makes the instruction pointer go back one step, thereby ensuring that the original instruction is executed.