heimdall.os_related.linux package
Submodules
heimdall.os_related.linux.filesystem module
- class heimdall.os_related.linux.filesystem.LinuxFileSystem[source]
Bases:
objectProvides utilities for interacting with the Linux file system, specifically for dentry operations.
heimdall.os_related.linux.linux_client module
- class heimdall.os_related.linux.linux_client.LinuxClient(vmi: libvmi.Libvmi, profile: Path)[source]
Bases:
HeimdallClient- property kslide: int
Return kernel slide value.
- property processes: LinuxProcesses
Return Linux processes.
heimdall.os_related.linux.processes module
- class heimdall.os_related.linux.processes.LinuxProcess(ks: Any, ctx: Context)[source]
Bases:
ProcessRepresents a Linux process, providing access to process attributes such as name, PID, and path.
- property name: str
The name of the process.
- Returns:
The name of the process.
- Return type:
str
- property path: str
The file path associated with the process executable.
- Returns:
The full path of the executable file, or the process name if path retrieval fails.
- Return type:
str
- property pid: int
The process ID (PID).
- Returns:
The process ID.
- Return type:
int
- class heimdall.os_related.linux.processes.LinuxProcesses(heimdall_client: HeimdallClient)[source]
Bases:
ProcessesManages Linux processes, allowing listing of all processes in the system.
- __init__(heimdall_client: HeimdallClient)[source]
Initialize the LinuxProcesses manager with a Heimdall client.
- Parameters:
heimdall_client (HeimdallClient) – The client used for interacting with the system kernel.
- list() → list[LinuxProcess][source]
List all processes.
- Returns:
A list of all Linux processes.
- Return type:
list of LinuxProcess