|
|
|
|
@ -10,25 +10,32 @@ import pwndbg.next
|
|
|
|
|
@pwndbg.commands.Command
|
|
|
|
|
@pwndbg.commands.OnlyWhenRunning
|
|
|
|
|
def nextjmp(*args):
|
|
|
|
|
pwndbg.next.break_next_branch()
|
|
|
|
|
"""Breaks at the next jump instruction"""
|
|
|
|
|
if pwndbg.next.break_next_branch():
|
|
|
|
|
pwndbg.commands.context.context()
|
|
|
|
|
|
|
|
|
|
@pwndbg.commands.Command
|
|
|
|
|
@pwndbg.commands.OnlyWhenRunning
|
|
|
|
|
def nextj(*args):
|
|
|
|
|
"""Breaks at the next jump instruction"""
|
|
|
|
|
nextjmp(*args)
|
|
|
|
|
|
|
|
|
|
@pwndbg.commands.Command
|
|
|
|
|
@pwndbg.commands.OnlyWhenRunning
|
|
|
|
|
def nextjump(*args):
|
|
|
|
|
"""Breaks at the next jump instruction"""
|
|
|
|
|
nextjmp(*args)
|
|
|
|
|
|
|
|
|
|
@pwndbg.commands.Command
|
|
|
|
|
@pwndbg.commands.OnlyWhenRunning
|
|
|
|
|
def nextcall(*args):
|
|
|
|
|
pwndbg.next.break_next_call()
|
|
|
|
|
"""Breaks at the next call instruction"""
|
|
|
|
|
if pwndbg.next.break_next_call():
|
|
|
|
|
pwndbg.commands.context.context()
|
|
|
|
|
|
|
|
|
|
@pwndbg.commands.Command
|
|
|
|
|
@pwndbg.commands.OnlyWhenRunning
|
|
|
|
|
def nextc(*args):
|
|
|
|
|
"""Breaks at the next call instruction"""
|
|
|
|
|
nextcall(*args)
|
|
|
|
|
|
|
|
|
|
|