dissect.executable.elf
#
Submodules#
Package Contents#
Classes#
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
- class dissect.executable.elf.ELF(fh: BinaryIO)#
- property dynamic: bool#
- __repr__() str #
Return repr(self).
- class dissect.executable.elf.Section(fh: BinaryIO, idx: Optional[int] = None, c_elf: dissect.cstruct.cstruct = c_elf_64)#
- property name: Optional[str]#
- __repr__() str #
Return repr(self).
- classmethod from_section_table(section_table: SectionTable, idx: int) Section #
- class dissect.executable.elf.SectionTable(fh: BinaryIO, offset: int, entries: int, size: int, string_index: Optional[int] = None, c_elf: dissect.cstruct.cstruct = c_elf_64)#
Bases:
Table
[Section
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- __repr__() str #
Return repr(self).
- classmethod from_elf(elf: ELF) SectionTable #
- class dissect.executable.elf.Segment(fh: BinaryIO, idx: Optional[int] = None, c_elf: dissect.cstruct.cstruct = c_elf_64)#
- property end: int#
- __repr__() str #
Return repr(self).
- classmethod from_segment_table(table: SegmentTable, idx: Optional[int] = None) Segment #
- class dissect.executable.elf.SegmentTable(fh: BinaryIO, offset: int, entries: int, size: int, c_elf: dissect.cstruct.cstruct = c_elf_64)#
Bases:
Table
[Segment
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- __repr__() str #
Return repr(self).
- classmethod from_elf(elf: ELF) SegmentTable #
- dump_data() list[tuple[int, bytearray]] #
- dump_table() tuple[int, bytearray] #
- class dissect.executable.elf.StringTable(fh: BinaryIO, idx: Optional[int] = None, c_elf: dissect.cstruct.cstruct = c_elf_64)#
Bases:
Section
- __getitem__(offset: int) str #
- class dissect.executable.elf.Symbol(fh: BinaryIO, idx: Optional[int] = None, c_elf: dissect.cstruct.cstruct = c_elf_64)#
- property name: str#
- property value: int#
- __repr__() str #
Return repr(self).
- classmethod from_symbol_table(table: SymbolTable, idx: int) Symbol #
- value_based_on_shndx(table: SectionTable) int #
- class dissect.executable.elf.SymbolTable(fh: BinaryIO, idx: Optional[int] = None, c_elf: dissect.cstruct.cstruct = c_elf_64)#
-
Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default