Merge pull request #37 from gsingh93/elfheader

Made elfheader run `info files`
pull/39/head
Zach Riggle 10 years ago
commit e6411366bf

@ -61,6 +61,7 @@ import pwndbg.commands.xor
import pwndbg.commands.peda
import pwndbg.commands.gdbinit
import pwndbg.commands.defcon
import pwndbg.commands.elfheader

@ -0,0 +1,11 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import gdb
import pwndbg.commands
@pwndbg.commands.Command
def elfheader():
"""
Prints the section mappings contained in the ELF header
"""
gdb.execute('info files')

@ -36,11 +36,3 @@ def vmmap(map=None):
continue
print(pwndbg.color.get(page.vaddr, text=str(page)))
@pwndbg.commands.OnlyWhenRunning
@pwndbg.commands.QuietSloppyParsedCommand
def elfheader(map=None):
"""
Provides PEDA compatibility. See vmmap command.
"""
return vmmap(map)

Loading…
Cancel
Save