dissect.executable.pe.directory.com_descriptor

Module Contents

Classes

ComDescriptorDirectory

The COM descriptor directory of a PE file.

ComMetadata

The COM metadata directory of the COM descriptor.

ComStream

A stream in the COM metadata.

class dissect.executable.pe.directory.com_descriptor.ComDescriptorDirectory(pe: dissect.executable.pe.pe.PE, address: int, size: int)

Bases: dissect.executable.pe.directory.base.DataDirectory

The COM descriptor directory of a PE file.

References

property descriptor: dissect.executable.pe.c_pe.c_pe.IMAGE_COR20_HEADER

The CLR 2.0 header descriptor.

property metadata: ComMetadata

The COM metadata directory.

class dissect.executable.pe.directory.com_descriptor.ComMetadata(pe: dissect.executable.pe.pe.PE, address: int, size: int)

Bases: dissect.executable.pe.directory.base.DataDirectory

The COM metadata directory of the COM descriptor.

property metadata: dissect.executable.pe.c_pe.c_pe.IMAGE_COR20_METADATA

The CLR 2.0 metadata descriptor.

property version: str

The version as defined in the metadata.

property streams: list[ComStream]

A list of streams defined in the metadata.

class dissect.executable.pe.directory.com_descriptor.ComStream(metadata: ComMetadata, offset: int, size: int, name: str)

A stream in the COM metadata.

metadata
offset
size
name
__repr__() str
property data: bytes

The data of the stream.

open() BinaryIO

Open the stream for reading.