Skip to content

ktask ¤

Displays information about kernel tasks. This command iterates through the kernel's task list and prints details about each task, including its address, PID, user space status, CPU, UID, GID, and name.

Classes:

Functions:

Attributes:

parser module-attribute ¤

parser = ArgumentParser(description='Displays information about kernel tasks.')

pt_regs_x86_64 ¤

Bases: Structure

pt_regs_aarch64 ¤

Bases: Structure

Kthread ¤

Kthread(thread: int | Value)

Methods:

Attributes:

thread instance-attribute ¤

thread = get_typed_pointer('struct task_struct', thread)

mm property ¤

mm: Value | None

pgd property ¤

pgd: int | None

stack property ¤

stack: int | None

canary property ¤

canary: int | None

name property ¤

name: str

pid property ¤

pid: int

user_task property ¤

user_task: bool

uid property ¤

uid: int

gid property ¤

gid: int

nsproxy property ¤

nsproxy: list[tuple[str, int]]

sighand property ¤

sighand: Generator[tuple[int, int], None, None]

user_stack property ¤

user_stack: int | None

files ¤

files() -> tuple[tuple[int, Value], ...]

pt_regs ¤

pt_regs() -> tuple[list[tuple[str, int]] | None, str | None]

seccomp ¤

seccomp() -> list[Value] | None

__str__ ¤

__str__() -> str

Ktask ¤

Ktask(task: int | Value)

Attributes:

task instance-attribute ¤

task = task

threads instance-attribute ¤

threads = threads

get_ktasks ¤

get_ktasks() -> tuple[Ktask, ...]

ktask ¤

ktask(task_name: str | None = None, pid: int | None = None) -> None