Package Elf
[hide private]
[frames] | no frames]

Package Elf

source code

Kenshoto's Elf parser

This package will let you use programatic ninja-fu when trying to parse Elf binaries. The API is based around several objects representing constructs in the Elf binary format. The Elf object itself contains parsed metadata and lists of things like section headers and relocation entries. Additionally, most of the objects implement repr() in some form or another which allows you a bunch of readelf-like functionality.

*Eventually* this API will allow you to modify Elf binaries and spit them back out in working order (not complete, you may notice some of the initial code).

Send bug reports to Invisigoth or Metr0.

Submodules [hide private]

Classes [hide private]
  ElfReloc
Elf relocation entries consist mostly of "fixup" address which are taken care of by the loader at runtime.
  Elf32Reloc
  Elf32Reloca
  Elf64Reloc
  Elf64Reloca
  ElfDynamic
  Elf32Dynamic
  Elf64Dynamic
  ElfSymbol
  Elf32Symbol
  Elf64Symbol
  ElfPheader
  Elf32Pheader
  Elf64Pheader
  ElfSection
  Elf32Section
  Elf64Section
  Elf
Functions [hide private]
 
getRelocType(val) source code
 
getRelocSymTabIndex(val) source code
Variables [hide private]
  verbose = False