Skip to content

LibElfAnnalyzer.py, Can we cavecode an ELF ?

mickdec edited this page Jul 16, 2020 · 1 revision

Library made for analyzing ELF file.

-class ELFHEADER
  ELF HEADER Class.
  -string ToHex()
        Return the section into a HEX string.
        -return: string
-class PROGRAMHEADER
  PROGRAM HEADER Class.
  -string ToHex()
        Return the section into a HEX string.
        -return: string
-class PROGRAMHEADERTABLE
  PROGRAM HEADER TABLE Class.
  -string ToHex()
        Return the section into a HEX string.
        -return: string
-class SECTIONHEADER
  SECTION HEADER Class.
  -string ToHex()
        Return the section into a HEX string.
        -return: string
-class SECTIONHEADERTABLE
  SECTION HEADER TABLE Class.
  -string ToHex()
        Return the section into a HEX string.
        -return: string
-class ELF
  ELF Class.
  -void PrintELF()
        Print all the ELF informations.
        -return: void
  -void PrintElfHeader()
        Print the ELF Header.
        -return: void
  -void PrintProgramHeaderTable()
        Print the Program Header Table.
        -return: void
  -void PrintSectionHeaderTable()
        Print the Section Header Table.
        -return: void
  -string ToHex()
        Return the ELF into a HEX string.
        -return: string
-LibPeAnnalyzer.ELF Extract(content: str)
  Extract all the ELF informations into a ELF class from a specified content HEX string.
  -return: LibElfAnnalyzer.ELF
-int ExtractELFHeader(content: str, Elf: ELF, index: int)
  Extract the ELF header from a content and add it to a LibElfAnnalyzer.ELF class.
  -return: int
-int ExtractProgramHeaderTable(content: str, Elf: ELF, index: int)
  Extract the PROGRAM header from a content and add it to a LibElfAnnalyzer.ELF class.
  -return: int
-int ExtractSectionHeaderTable(content: str, Elf: ELF, index: int)
  Extract the SECTION header table from a content and add it to a LibElfAnnalyzer.ELF class.
  -return: int