SplitScript reference / Module

Module

record

record Module

Describes a module loaded in the attached process.

A module exposes its base address and mapped size for bounded memory discovery.

Examples

Discover the main executable module

let executable: Module = await process.mainModule()

Fields

MemberDescriptionAvailable through
addressReturns the module base address.
sizeReturns the mapped module size.

Methods

MemberDescriptionAvailable through
fileVersionReads the file identity from a Windows PE version resource.
pathReturns the module's host-provided filesystem path.
peExportResolves a named function exported by a Windows PE module.
pointerSizeDetermines the pointer width of a Windows PE module.
productVersionReads the product identity from a Windows PE version resource.
readRelative32Reads a 32-bit relative address at an offset from this module.
scanScans a module for a signature.
scanAnyScans the module for the first of several signatures.
scanRelative32TargetScans for a signature whose signed relative 32-bit operand resolves to a particular address.
versionInfoReads both fixed numeric versions from a Windows PE version resource.