|
|
|
@ -14,10 +14,10 @@ import pwndbg.disasm.sparc
|
|
|
|
import pwndbg.disasm.x86
|
|
|
|
import pwndbg.disasm.x86
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
import unicorn
|
|
|
|
import unicorn
|
|
|
|
import pwndbg.emu
|
|
|
|
import pwndbg.emu
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
import pwndbg.vmmap
|
|
|
|
import pwndbg.vmmap
|
|
|
|
import pwndbg.dt
|
|
|
|
import pwndbg.dt
|
|
|
|
@ -124,7 +124,7 @@ handle SIGSEGV stop print nopass
|
|
|
|
""".strip() % prompt
|
|
|
|
""".strip() % prompt
|
|
|
|
|
|
|
|
|
|
|
|
for line in pre_commands.strip().splitlines():
|
|
|
|
for line in pre_commands.strip().splitlines():
|
|
|
|
gdb.execute(line)
|
|
|
|
gdb.execute(line)
|
|
|
|
|
|
|
|
|
|
|
|
msg = "Loaded %i commands. Type pwndbg for a list." % len(pwndbg.commands._Command.commands)
|
|
|
|
msg = "Loaded %i commands. Type pwndbg for a list." % len(pwndbg.commands._Command.commands)
|
|
|
|
print(pwndbg.color.red(msg))
|
|
|
|
print(pwndbg.color.red(msg))
|
|
|
|
@ -139,7 +139,9 @@ def prompt_hook(*a):
|
|
|
|
pwndbg.events.after_reload()
|
|
|
|
pwndbg.events.after_reload()
|
|
|
|
cur = new
|
|
|
|
cur = new
|
|
|
|
|
|
|
|
|
|
|
|
prompt_hook_on_stop(*a)
|
|
|
|
if pwndbg.proc.alive:
|
|
|
|
|
|
|
|
prompt_hook_on_stop(*a)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pwndbg.memoize.reset_on_stop
|
|
|
|
@pwndbg.memoize.reset_on_stop
|
|
|
|
def prompt_hook_on_stop(*a):
|
|
|
|
def prompt_hook_on_stop(*a):
|
|
|
|
|