Class Module

Hierarchy

  • Module

Constructors

Properties

Base address.

name: string

Canonical module name.

path: string

Full filesystem path.

size: number

Size in bytes.

Methods

  • Enumerates memory ranges of module with the name as seen in Process#enumerateModules().

    Parameters

    • protection: string

      Minimum protection of ranges to include.

    Returns RangeDetails[]

  • Looks up the absolute address of the export named exportName.

    Returns null if the export doesn't exist.

    Parameters

    • exportName: string

      Export name to find the address of.

    Returns null | NativePointer

  • Looks up the absolute address of the export named exportName.

    Throws an exception if the export doesn't exist.

    Parameters

    • exportName: string

      Export name to find the address of.

    Returns NativePointer

  • Ensures that initializers of the specified module have been run. This is important during early instrumentation, i.e. code run early in the process lifetime, to be able to safely interact with APIs.

    One such use-case is interacting with ObjC classes provided by a given module.

    Parameters

    • name: string

    Returns void

  • Looks up the base address of the name module. Returns null if the module isn’t loaded.

    Parameters

    • name: string

      Module name or path.

    Returns null | NativePointer

  • Looks up the absolute address of the export named exportName in moduleName. If the module isn’t known you may pass null instead of its name, but this can be a costly search and should be avoided.

    Returns null if the module or export doesn't exist.

    Parameters

    • moduleName: null | string

      Module name or path.

    • exportName: string

      Export name to find the address of.

    Returns null | NativePointer

  • Looks up the base address of the name module. Throws an exception if the module isn’t loaded.

    Parameters

    • name: string

      Module name or path.

    Returns NativePointer

  • Looks up the absolute address of the export named exportName in moduleName. If the module isn’t known you may pass null instead of its name, but this can be a costly search and should be avoided.

    Throws an exception if the module or export doesn't exist.

    Parameters

    • moduleName: null | string

      Module name or path.

    • exportName: string

      Export name to find the address of.

    Returns NativePointer

  • Loads the specified module.

    Parameters

    • name: string

    Returns Module

Generated using TypeDoc