Skip to content

Instantly share code, notes, and snippets.

@tahaconfiant
Created December 10, 2019 08:30
Show Gist options
  • Save tahaconfiant/6a407aa6e7124cb7f94f9cea6130ba2d to your computer and use it in GitHub Desktop.
Save tahaconfiant/6a407aa6e7124cb7f94f9cea6130ba2d to your computer and use it in GitHub Desktop.
custom_breakpoints
def custom_breakpoints(debugger, command, result, internal_dict):
target = debugger.GetSelectedTarget()
breakpoint = target.BreakpointCreateByName("write", "libsystem_kernel.dylib")
breakpoint.SetScriptCallbackFunction('bundlore_python_dump.write_callback')
breakpoint = target.BreakpointCreateByName("waitpid")
breakpoint.SetScriptCallbackFunction('bundlore_python_dump.waitpid_callback')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment