Skip to content

Instantly share code, notes, and snippets.

@50n1cd347h9
Last active November 8, 2024 13:06
Show Gist options
  • Save 50n1cd347h9/242a1b9d817380caf135fff0dcad4465 to your computer and use it in GitHub Desktop.
Save 50n1cd347h9/242a1b9d817380caf135fff0dcad4465 to your computer and use it in GitHub Desktop.
dbg = binaryninja.debugger.debuggercontroller.DebuggerController(bv)
# get ecx value
val = dbg.get_reg_value("ecx")

dbg.step_into_and_wait()
dbg.step_into()

dbg.add_breakpoint(0xdeadbeef)
while dbg.go_and_wait():
        if dbg.get_reg_value("ecx") == 0:
                break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment