Created
December 10, 2019 09:03
-
-
Save tahaconfiant/2e042d795ade2835ee105720b9d58dc5 to your computer and use it in GitHub Desktop.
fork-breakpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# global variables | |
# this variable stores original bytes of the child process before the patch | |
backup_bytes = 0 | |
# this is the "child entry-point" | |
patch_address = 0x10000ac87 | |
def custom_breakpoints(debugger, command, result, internal_dict): | |
target = debugger.GetSelectedTarget() | |
breakpoint = target.BreakpointCreateByName("fork") | |
breakpoint.SetScriptCallbackFunction('follow_fork_child.fork_callback') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment