Exploit databaseDownload repository ZIP
GH-e6e5922ef9ac5cc7d4897803cb452516
zero2005x/rokid-rv101-research
Sources for CVE-2026-43499
170 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files6
zero2005x/rokid-rv101-researchRevision c74832d113c5
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
research/ghostlock_refs/extracted/honor/cve-2026-43499-honor-main/scripts/fix/compile.py
Python · 2,179 bytes#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Compile preload.so for honor-BVL-AN16 using NDK clang (bypass make)."""
import subprocess, os, sys, hashlib
EXPLOIT = r"D:\新建文件夹 (4)\root\545\CyberMeowfia\IonStack\CVE-2026-43499\exploit"
CC = r"D:\android-ndk-r28\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android35-clang"
PROJECT = "honor-BVL-AN16"
API = 35
os.chdir(EXPLOIT)
EMBED_DIR = "build/embed"
OUTDIR = f"build/{PROJECT}/bin"
os.makedirs(EMBED_DIR, exist_ok=True)
os.makedirs(OUTDIR, exist_ok=True)
EMBED_SU = f"{EMBED_DIR}/su_daemon_aarch64_pie"
PRELOAD = f"{OUTDIR}/preload.so"
TARGET_CFLAG = f'-DTARGET_CONFIG_H="targets/{PROJECT}/target.h"'
COMMON = ["-O2", "-g0", "-Wall", "-Wextra", "-Isrc"]
WARN = ["-Wno-unused-parameter", "-Wno-sign-compare", "-Wno-unused-function"]
CORE_SRCS = ["src/main.c", "src/util.c", "src/slide.c", "src/fops.c", "src/pipe.c", "src/root.c"]
PRELOAD_SRCS = CORE_SRCS + ["src/preload.c", "src/su_blob.S", "src/wallpaper_blob.S"]
def run(cmd, desc):
print(f"\n=== {desc} ===")
print(" " + " ".join(cmd))
r = subprocess.run(cmd, capture_output=True, text=True, encoding="utf-8", errors="replace")
out = (r.stdout or "") + (r.stderr or "")
if out.strip():
print(out[-3000:])
print(f" exit_code = {r.returncode}")
return r.returncode == 0
# 1. build su_daemon PIE
ok1 = run([CC, "-fPIE", "-pie"] + COMMON + [TARGET_CFLAG, "src/su_daemon.c", "-o", EMBED_SU],
"1/2 编译 su_daemon (嵌入二进制)")
# 2. build preload.so
ok2 = run([CC, "-fPIC"] + COMMON + WARN + [TARGET_CFLAG] + PRELOAD_SRCS +
["-shared", "-o", PRELOAD, "-pthread"],
"2/2 编译 preload.so")
print("\n===== 结果 =====")
if ok1 and ok2 and os.path.exists(PRELOAD):
sz = os.path.getsize(PRELOAD)
sha = hashlib.sha256(open(PRELOAD, "rb").read()).hexdigest()
print(f"[+] 编译成功: {PRELOAD}")
print(f"[+] 大小: {sz} bytes ({sz/1024:.1f} KiB)")
print(f"[+] SHA256: {sha}")
else:
print("[-] 编译失败")
if not ok1:
print(" su_daemon 编译失败")
if not ok2:
print(" preload.so 编译失败")
sys.exit(1)