Exploit databaseDownload repository ZIP
GH-14fb583d3d1bd2da10251bb1a37b93d6
gitchw/ghostlock-cve-2026-43499
Sources for CVE-2026-43499
168 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files258
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
- ↑..Parent directory
- abl.elf
- boot.img
- callers_sigmask.py
- chain2.txt
- chain_disasm.txt
- chain_disasm_a.py
- chain_oppo.txt
- check_call.py
- check_dispatch.py
- check_elf_refs.py
- check_fix.py
- check_fops.py
- check_fops_layout.py
- check_perf.py
- check_pi_slot.py
- check_prctl_frame.py
- check_seg.py
- check_static.py
- check_tp_tail.py
- check_unix_dispatch.py
- cmp_text.py
- comm_off.py
- dbg_arith.py
- dbg_frame.py
- dbg_scan.py
- dbg_scan7.py
- dbg_seg.py
- dbg_seg2.py
- decode_futex_jtab.py
- disasm_adj.py
- disasm_adj2.py
- disasm_adjtimex.py
- disasm_adjust_pi.py
- disasm_adjustpi.py
- disasm_adjustpi2.py
- disasm_cfr.py
- disasm_cfr2.py
- disasm_chain.py
- disasm_chain2.py
- disasm_chain_exits.py
- disasm_chain_head.py
- disasm_chain_mid.py
- disasm_chain_requeue.py
- disasm_clone3.py
- disasm_diff.py
- disasm_diff.txt
- disasm_enqueue.py
- disasm_fgetxattr.py
- disasm_getsockopt.py
- disasm_helper.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
workspace/ota/find_common_getsockopt.py
Python · 1,421 bytes#!/usr/bin/env python3
import struct,bisect,re
raw=open('/mnt/d/project/ow/ota/kernel_raw.bin','rb').read()
BASE=0xc0008000
syms=[]
for line in open('/mnt/d/project/ow/ghostlock-cve-2026-43499/kernel/oppo_kallsyms.txt'):
p=line.split()
if len(p)>=3 and re.fullmatch(r'[0-9a-f]{8}',p[0]):
syms.append((int(p[0],16),p[1],p[2]))
syms.sort(); addrs=[s[0] for s in syms]
def near(a):
i=bisect.bisect_right(addrs,a)-1
s=syms[i]; return '%s+0x%x'%(s[2],a-s[0])
def w(a):
o=a-BASE
return struct.unpack('<I',raw[o:o+4])[0]
def cstr(a,n=20):
o=a-BASE
if o<0 or o>=len(raw): return None
e=raw.find(b'\0',o)
if e<0 or e-o>n: return None
try: return raw[o:e].decode('ascii')
except: return None
TARGET=0xc0d82ea8
# scan whole image for pointer to sock_common_getsockopt
print("=== refs to sock_common_getsockopt c0d82ea8 ===")
for off in range(0,len(raw)-4,4):
v=struct.unpack_from('<I',raw,off)[0]
if v==TARGET:
a=BASE+off
print(f" {a:08x} ({near(a)})")
# dump l2cap/sco/netlink proto regions: find name string ptr within -0x20..+0x10
for nm,sym in [('l2cap',0xc1c0a6c0),('sco',0xc1c0a7c4),('netlink',0xc1c03c08)]:
print(f"=== {nm} around {sym:08x} ===")
for a in range(sym-0x20,sym+0x10,4):
v=w(a); s=cstr(v)
if s and s.isalpha() and s.isupper():
print(f" name ptr at {a:08x} -> \"{s}\" ; struct start guess {a}")