Exploit database

GH-e6e5922ef9ac5cc7d4897803cb452516

zero2005x/rokid-rv101-research

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

165 sources

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

Repository files30

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/analyze/find_bootid4.py

Python · 1,454 bytes
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Find code referencing the 'boot_id' string page, computing adrp target correctly."""
import capstone, bisect

BASE = 0xffffffc008000000
k = open(r"D:\新建文件夹 (4)\root\545\unpacked\kernel.bin", "rb").read()

lines = open(r"D:\新建文件夹 (4)\root\545\unpacked\kernel.kallsyms").read().splitlines()
syms = []
for l in lines:
    p = l.split()
    if len(p) >= 3:
        syms.append((int(p[0],16), p[1], p[2]))
syms.sort()
def sym_at(addr):
    idx = bisect.bisect_right([s[0] for s in syms], addr) - 1
    if idx >= 0:
        a,t,n = syms[idx]
        return f"{n}+{addr-a:#x}" if 0 < addr-a < 0x200 else n
    return "?"

target_page = 0xffffffc0095ef000
md = capstone.Cs(capstone.CS_ARCH_ARM64, capstone.CS_MODE_ARM)
md.detail = True
TEXT_START = 0xffffffc008010000
TEXT_END = 0xffffffc00a180000
code = k[TEXT_START-BASE : TEXT_END-BASE]

hits = []
for insn in md.disasm(code, TEXT_START):
    if insn.mnemonic == "adrp":
        op = insn.operands[1]
        if op.type == capstone.arm64.ARM64_OP_IMM:
            tgt = (insn.address & ~0xfff) + op.imm
            if tgt == target_page:
                hits.append((insn.address, tgt))

print(f"[+] adrp -> {target_page:#x}: {len(hits)} hits")
for h, tgt in hits:
    o = h - BASE
    print(f"\n  @ {h:#x} ({sym_at(h)}):")
    for insn in md.disasm(k[o:o+24], h):
        print(f"    {insn.address:#x}: {insn.mnemonic:8s} {insn.op_str}")