|
|
|
|
@ -10,6 +10,7 @@ from __future__ import unicode_literals
|
|
|
|
|
|
|
|
|
|
import errno
|
|
|
|
|
import functools
|
|
|
|
|
import inspect
|
|
|
|
|
import os
|
|
|
|
|
import socket
|
|
|
|
|
import traceback
|
|
|
|
|
@ -91,6 +92,13 @@ def r2l(addr):
|
|
|
|
|
result = (addr - base() + int(exe.address)) & pwndbg.arch.ptrmask
|
|
|
|
|
return result
|
|
|
|
|
|
|
|
|
|
def remote(function):
|
|
|
|
|
"""Runs the provided function in IDA's interpreter.
|
|
|
|
|
|
|
|
|
|
The function must be self-contained and not reference any
|
|
|
|
|
global variables."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pwndbg.memoize.reset_on_objfile
|
|
|
|
|
def base():
|
|
|
|
|
segaddr = _ida.NextSeg(0)
|
|
|
|
|
@ -186,7 +194,7 @@ def UpdateBreakpoints():
|
|
|
|
|
if not pwndbg.memory.peek(bp):
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
bp = gdb.Breakpoint('*' + hex(bp))
|
|
|
|
|
bp = gdb.Breakpoint('*' + hex(int(bp)))
|
|
|
|
|
_breakpoints.append(bp)
|
|
|
|
|
# print(_breakpoints)
|
|
|
|
|
|
|
|
|
|
|