Exploit database

GH-594a156883cbf863201dae6cf96323f3

zenyxx-xd/rootmyvivo-exploit

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 files46
zenyxx-xd/rootmyvivo-exploitRevision 201ffc023401

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

afunix/tools/map_read_locks.py

Python · 1,925 bytes
"""Map the lock structure of unix_stream_read_generic (6.6.127):
- all references to unix_sk->lock (offset 0x400) — acquire/release of
  unix_state_lock
- all named call targets
- where the scm_fp_dup call sits relative to the locked regions
"""
import re, bisect
import capstone

BASE = 0xFFFFFFC080000000
IMG = r"C:\neo11\ota\kernel_6_6_127.img"
KALL = r"C:\neo11\ota\kallsyms_6_6_127.txt"

data = open(IMG, "rb").read()
syms = {}
for line in open(KALL):
    m = re.match(r"([0-9a-f]{16}) (\w) (\S+)", line.strip())
    if m:
        syms.setdefault(m.group(3), int(m.group(1), 16))
items = sorted((a, n) for n, a in syms.items())
addrs = [a for a, _ in items]

def nearest(addr):
    i = bisect.bisect_right(addrs, addr) - 1
    if i < 0:
        return "?", 0
    return items[i][1], addr - items[i][0]

md = capstone.Cs(capstone.CS_ARCH_ARM64, capstone.CS_MODE_LITTLE_ENDIAN)

fn = "unix_stream_read_generic"
addr = syms[fn]
i = bisect.bisect_right(addrs, addr)
end = addrs[i] if i < len(addrs) else addr + 3000*4
code = data[addr - BASE:end - BASE]
insns = list(md.disasm(code, addr))
print("%s: %016x..%016x (%d insns)\n" % (fn, addr, end, len(insns)))

dup_addr = syms["scm_fp_dup"]
for idx, ins in enumerate(insns):
    why = []
    if ins.mnemonic == "bl":
        try:
            tgt = int(ins.op_str.lstrip("#"), 16)
        except ValueError:
            continue
        if tgt == dup_addr:
            why.append("<<< scm_fp_dup")
        else:
            n, d = nearest(tgt)
            why.append("; <%s%s>" % (n, "+0x%x" % d if d else ""))
    if "#0x400" in ins.op_str or "#0x404" in ins.op_str or "#0x3fc" in ins.op_str:
        why.append(";; unix_sock.lock?")
    if ins.mnemonic in ("ldadd", "ldxr", "stxr", "ldaxr", "stlr") and "0x400" in ins.op_str:
        why.append(";; LOCKOP")
    if why:
        print("%4d 0x%x: %-8s %s   %s" % (idx, ins.address, ins.mnemonic, ins.op_str, " ".join(why)))