Skip to content

ktask ¤

Classes:

Functions:

Attributes:

ROOT_COMM module-attribute ¤

ROOT_COMM = 'swapper/'

INIT_TASK module-attribute ¤

INIT_TASK = None

TASK_COMM_LEN module-attribute ¤

TASK_COMM_LEN = 16

NextVmaFinder ¤

NextVmaFinder(mm: int | Value)

Methods:

Attributes:

mm instance-attribute ¤

mm = mm

__iter__ ¤

__iter__() -> Generator[int, None, None]

vma_struct_parse ¤

vma_struct_parse() -> Generator[int, None, None]

get_stack_offset ¤

get_stack_offset(tasks: list[int]) -> int

get_tasks_offset ¤

get_tasks_offset(mm_offset: int) -> tuple[list[int], int]

get_mm_offset ¤

get_mm_offset(task: int) -> int

get_vm_area_struct ¤

get_vm_area_struct(mm: int) -> str

get_mm_struct ¤

get_mm_struct(tasks: list[int], mm_offset: int) -> str

get_pid_offset ¤

get_pid_offset(tasks: list[int], mm_offset: int, comm_offset: int) -> int

get_thread_list_offset ¤

get_thread_list_offset(pid_offset: int) -> int

get_comm_offset ¤

get_comm_offset(tasks: list[int]) -> tuple[int, int]

get_cred_struct_and_offset ¤

get_cred_struct_and_offset(
    tasks: list[int], comm_offset: int
) -> tuple[str, int]

get_path_struct ¤

get_path_struct(dentry: int | None) -> str

get_inode_struct ¤

get_inode_struct(inode: int | None) -> str

get_file_struct ¤

get_file_struct(file: int | None) -> str

get_files_struct_and_offset ¤

get_files_struct_and_offset(
    task: int, off: int, tasks: list[int], mm_offset: int
) -> tuple[str, int]

get_nsproxy_struct_and_offset ¤

get_nsproxy_struct_and_offset(task: int, off: int) -> tuple[str, int]

get_signal_struct ¤

get_signal_struct() -> str

get_sighand_struct ¤

get_sighand_struct(task: int, nsproxy_offset: int) -> str

get_sp_offset ¤

get_sp_offset(tasks: list[int], stack_offset: int, comm_offset: int) -> int

recover_ktask_typeinfo ¤

recover_ktask_typeinfo() -> str

get_filepath ¤

get_filepath(file: int | Value) -> str

resolve_addr_if_file ¤

resolve_addr_if_file(mm: int | Value, addr: int) -> str

recover_seccomp_typeinfo ¤

recover_seccomp_typeinfo(_filter: int) -> str

seccomp ¤

seccomp(task: Value) -> Value | None