Heimdall

Getting started:

  • Overview
  • Installation
  • Basic Usage
  • Heimdall Core
  • Future Plans for Heimdall
  • Contributing

API Reference:

  • heimdall package
  • heimdall.core package
  • heimdall.cli package
  • heimdall.os_related.base_os package
  • heimdall.os_related.macos package
    • Submodules
    • heimdall.os_related.macos.filesystem module
    • heimdall.os_related.macos.macos_client module
    • heimdall.os_related.macos.processes module
    • Module contents
  • heimdall.os_related.linux package
  • heimdall.os_related.windows package
  • heimdall.utils package
Heimdall
  • heimdall package
  • heimdall.os_related package
  • heimdall.os_related.macos package
  • View page source

heimdall.os_related.macos package

Submodules

heimdall.os_related.macos.filesystem module

class heimdall.os_related.macos.filesystem.MacOSFileSystem[source]

Bases: object

Provides utilities for interacting with the macOS file system, specifically for vnode operations.

static vnode_full_path(v_node: Symbol) → str[source]

Return the full path of a vnode by traversing its parent hierarchy.

Parameters:

v_node (Symbol) – The vnode for which to retrieve the full path.

Returns:

The full path of the vnode.

Return type:

str

static vnode_traversal(v_node: Symbol) → Iterator[Any][source]

Traverse the vnode hierarchy starting from a given vnode.

Parameters:

v_node (Symbol) – The vnode from which to start traversal.

Yields:

Symbol – Each vnode in the hierarchy from the given vnode up to the root.

heimdall.os_related.macos.macos_client module

class heimdall.os_related.macos.macos_client.MacOSClient(vmi: libvmi.Libvmi, profile: Path)[source]

Bases: HeimdallClient

__init__(vmi: libvmi.Libvmi, profile: Path)[source]

Initialize MacOSClient.

property kslide: int

Return kernel slide value.

property processes: MacOSProcesses

Return MacOS processes.

heimdall.os_related.macos.processes module

class heimdall.os_related.macos.processes.MacOSProcess(ks: Any, ctx: Context)[source]

Bases: Process

Represents a macOS process, providing access to attributes such as PID, name, and path.

property name: str

Process name.

Returns:

The name of the process.

Return type:

str

property path: str

Process path.

Returns:

The full path of the process executable.

Return type:

str

property pid: int

Process ID (PID).

Returns:

The process ID.

Return type:

int

class heimdall.os_related.macos.processes.MacOSProcesses(heimdall_client: HeimdallClient)[source]

Bases: Processes

Manages a collection of macOS processes, providing methods to retrieve processes by various attributes.

__init__(heimdall_client: HeimdallClient)[source]

Initialize the MacOSProcesses manager with a Heimdall client.

Parameters:

heimdall_client (HeimdallClient) – The client used for interacting with the system kernel.

list() → list[MacOSProcess][source]

List all processes.

Returns:

A list of all macOS processes.

Return type:

list of MacOSProcess

Module contents

Previous Next

© Copyright 2024, Netanel Cohen.

Built with Sphinx using a theme provided by Read the Docs.