Exploit databaseDownload repository ZIP
GH-4e1c81f209356a53c0f21519df205900
no-world/rootkit
Sources for CVE-2026-64560
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files15
no-world/rootkitRevision 1c3caba207b8
- ↑..Parent directory
- arm64/
- riscv64/
- x86_64/
- lsm_hook.c
- lsm_hook.h
- patch_memory.h
- setuid_hook.c
- setuid_hook.h
- syscall_event_bridge.c
- syscall_event_bridge.h
- syscall_hook.h
- syscall_hook_manager.c
- syscall_hook_manager.h
- tp_marker.c
- tp_marker.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
third_party/kernelsu/source/kernel/hook/patch_memory.h
Text · 874 bytes/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (C) 2023 bmax121. All Rights Reserved.
*/
#ifndef __KSU_PATCH_MEMORY_H
#define __KSU_PATCH_MEMORY_H
#include <linux/types.h>
#include "linux/version.h"
#ifdef __aarch64__
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0)
#include "asm/text-patching.h" // IWYU pragma: keep
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0)
#include "asm/patching.h" // IWYU pragma: keep
#else
#include "asm/insn.h" // IWYU pragma: keep
#endif
#elif defined(__x86_64__) || defined(__riscv)
#include <asm/ptrace.h>
#else
#error "Unsupported arch"
#endif
#define KSU_PATCH_TEXT_FLUSH_DCACHE 1
#define KSU_PATCH_TEXT_FLUSH_ICACHE 2
unsigned long phys_from_virt(unsigned long addr, int *err);
int ksu_patch_text(void *dst, void *src, size_t len, int flags);
void *scan_call_to(void *start, size_t size, void *target);
#endif