Example #1
0
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)
Example #2
0
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))
Example #3
0
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))
Example #4
0
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)