Exploit databaseDownload repository ZIP
GH-e6e5922ef9ac5cc7d4897803cb452516
zero2005x/rokid-rv101-research
Sources for CVE-2026-43499
166 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files15
zero2005x/rokid-rv101-researchRevision c74832d113c5
- ↑..Parent directory
- btf_parse.py
- btf_var.py
- dump_axml.py
- dump_jumptable.py
- dump_waiter_btf.py
- fingerprint.py
- ikconfig.py
- parse_arsc.py
- parse_boot.py
- parse_erofs.py
- parse_symtab.py
- pe_parse.py
- read_imgheader.py
- read_miscdev.py
- read_vars.py
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/parse/ikconfig.py
Python · 2,720 bytes#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Extract embedded kernel config (IKCONFIG) from kernel.bin if present."""
import re, gzip, zlib
k = open(r"D:\新建文件夹 (4)\root\545\unpacked\kernel.bin", "rb").read()
# IKCONFIG magic: "IKCFG_ST" ... "IKCFG_ED", with gzip-compressed config in between
start = k.find(b"IKCFG_ST")
print(f"[+] IKCFG_ST at {hex(start) if start != -1 else -1}")
config = None
if start != -1:
# after "IKCFG_ST" comes a u32 size, then gzip data
import struct
hdr = start + 8 # skip "IKCFG_ST"
size, = struct.unpack_from("<I", k, hdr)
print(f"[+] config size = {size}")
gz_start = hdr + 4
gz = k[gz_start:gz_start + size]
# try gzip
try:
config = gzip.decompress(gz).decode("utf-8", errors="replace")
print("[+] gzip decompress OK")
except Exception as e:
print(f"[-] gzip failed: {e}, trying raw")
config = gz.decode("utf-8", errors="replace")
if config is None:
# fallback: raw search for CONFIG_ strings in the whole image
print("[-] no IKCONFIG, searching raw strings for key CONFIG_")
for key in [b"CONFIG_ARM64_MTE", b"CONFIG_ARM64_VA_BITS", b"CONFIG_SLUB_MIN_ORDER",
b"CONFIG_SLUB_MAX_ORDER", b"CONFIG_SLUB", b"CONFIG_SLAB",
b"CONFIG_ARM64_VA_BITS_39", b"CONFIG_ARM64_VA_BITS_48",
b"CONFIG_ARM64_4K_PAGES", b"CONFIG_ARM64_16K_PAGES",
b"CONFIG_FUTEX", b"CONFIG_MMU"]:
idx = k.find(key)
if idx != -1:
ctx = k[idx:idx+80]
print(f" {key.decode()}: found at {hex(idx)}: {ctx!r}")
else:
print("[+] extracted config, searching key options:\n")
for key in ["CONFIG_ARM64_MTE", "CONFIG_ARM64_VA_BITS", "CONFIG_SLUB_MIN_ORDER",
"CONFIG_SLUB_MAX_ORDER", "CONFIG_SLUB_MIN_OBJECTS", "CONFIG_SLUB_TINY",
"CONFIG_SLUB_CPU_PARTIAL", "CONFIG_SLAB_MERGE_DEFAULT",
"CONFIG_ARM64_VA_BITS_39", "CONFIG_ARM64_VA_BITS_48",
"CONFIG_ARM64_4K_PAGES", "CONFIG_ARM64_16K_PAGES", "CONFIG_ARM64_64K_PAGES",
"CONFIG_KASAN", "CONFIG_KASAN_HW_TAGS", "CONFIG_KASAN_SW_TAGS",
"CONFIG_ARM64_PAGE_SHIFT", "CONFIG_ARCH_MMAP_RND_BITS",
"CONFIG_RANDOMIZE_BASE", "CONFIG_RELR", "CONFIG_SMP"]:
for line in config.splitlines():
if line.startswith(key + "=") or line.startswith("# " + key + " is not set"):
print(f" {line.strip()}")
break
# also dump full config to file for reference
open(r"D:\新建文件夹 (4)\root\545\unpacked\kernel.config", "w", encoding="utf-8").write(config)
print("\n[+] full config saved to unpacked/kernel.config")