def dsva(offset, max, module=None): offset = int(offset) offset &= pwndbg.arch.ptrmask offset = int(offset) if not module: module = get_exe_name() addr = translate_addr(offset, module) return ds(addr, max)
def dqva(offset, count=8, module=None): """ Starting at the specified address, dump N qwords (default 8). """ offset = int(offset) if not module: module = get_exe_name() addr = translate_addr(offset, module) return dX(8, (addr), (count))
def dbva(offset, count=64, module=None): """ Starting at the specified address, dump N bytes (default 64). """ offset = int(offset) if not module: module = get_exe_name() addr = translate_addr(offset, module) return dX(1, (addr), (count))
def dcva(offset, count=8, module=None): offset = int(offset) if not module: module = get_exe_name() addr = translate_addr(offset, module) return pwndbg.commands.hexdump.hexdump(address=addr, count=count)