Fix canary command

pull/162/head
Zach Riggle 9 years ago
parent 2bb8732efc
commit 494e7ae13c

@ -79,8 +79,9 @@ def distance(a, b):
@_pwndbg.commands.Command @_pwndbg.commands.Command
def canary(): def canary():
"""Print out the current stack canary""" """Print out the current stack canary"""
auxv = pwndbg.auxv.get() auxv = _pwndbg.auxv.get()
if 'AT_SECURE' in auxv: at_random = auxv.get('AT_RANDOM', None)
print("AT_SECURE=%#x" % auxv['AT_SECURE']) if at_secure is not None:
print("AT_RANDOM=%#x" % at_secure)
else: else:
print("Couldn't find AT_SECURE") print("Couldn't find AT_RANDOM")

Loading…
Cancel
Save