Exploit databaseDownload repository ZIP
GH-9019c5aec41e04803d5b60762db3be83
mobilehackinglab/ghostlock-a17
Sources for CVE-2026-43499
170 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files14
mobilehackinglab/ghostlock-a17Revision eddefdda015c
- ↑..Parent directory
- README.md
- boot47.log
- boot61.log
- bp_sanity.py
- btf_audit.py
- dl_stub.c
- fake_sh.c
- init_e2e.c
- mkinitramfs.sh
- patch_image.py
- patch_trace.py
- rb_trace.py
- run.sh
- umh.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
qemu-e2e/btf_audit.py
Python · 977 bytes#!/usr/bin/env python3
"""Audit wq-umh struct offsets against the BZA5 kernel BTF.
Usage: btf_audit.py /path/to/vmlinux.elf [/path/to/extract_btf_dir]
extract_btf.py comes from the ghostlock-oneplus tools/ directory."""
import sys, struct
sys.path.insert(0, sys.argv[2] if len(sys.argv) > 2 else ".")
import extract_btf
data = open(sys.argv[1] if len(sys.argv) > 1 else "vmlinux.elf", 'rb').read()
btf_off = extract_btf.find_btf(data)
hdr_len = struct.unpack_from('<I', data, btf_off+4)[0]
type_len = struct.unpack_from('<I', data, btf_off+12)[0]
type_data = data[btf_off+hdr_len:btf_off+hdr_len+type_len]
str_data = data[btf_off+hdr_len+type_len:]
for name in ["workqueue_struct", "pool_workqueue", "worker_pool", "subprocess_info", "work_struct"]:
res = extract_btf.find_struct_in_btf(type_data, str_data, name)
for size, members in res:
print(f"=== {name} (size={size}):")
for mname, moff in members:
print(f" {mname:32s} 0x{moff:x}")