libTriton  version 0.4 build 1356
ElfProgramHeader

Table of Contents

[python api] All information about the ElfProgramHeader python object.

Description


This object is used to represent a Program Header entry from the ELF binary format.

Example

>>> binary = Elf('/usr/bin/gdb')
>>> phdr = binary.getProgramHeaders()
>>> for p in phdr:
... if p.getType() == ELF.PT_LOAD:
... print hex(p.getVaddr())
...
0x400000L
0xbfdda0L

Python API - Methods of the ElfProgramHeader class