Fix auxv ordering and enhance signedness

pull/22/head
Zach Riggle 10 years ago
parent 6dc5e625a9
commit b5fede9afe

@ -12,6 +12,6 @@ def auxv():
""" """
Print information from the Auxiliary ELF Vector. Print information from the Auxiliary ELF Vector.
""" """
for k,v in pwndbg.auxv.get().items(): for k,v in sorted(pwndbg.auxv.get().items()):
if v is not None: if v is not None:
print(k.ljust(24), v if not isinstance(v, (long, int)) else pwndbg.chain.format(v)) print(k.ljust(24), v if not isinstance(v, (long, int)) else pwndbg.chain.format(v))

@ -32,7 +32,7 @@ def good_instr(i):
return not any(bad in i for bad in bad_instrs) return not any(bad in i for bad in bad_instrs)
def int_str(value): def int_str(value):
retval = '%#x' % int(value) retval = '%#x' % int(value & pwndbg.arch.ptrmask)
# Try to unpack the value as a string # Try to unpack the value as a string
packed = pwndbg.arch.pack(int(value)) packed = pwndbg.arch.pack(int(value))

Loading…
Cancel
Save