Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

166 sources

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

Repository files258
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
Next files →

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

workspace/ota/scan_unix_bt.py

Python · 1,273 bytes
#!/usr/bin/env python3
import struct,re
raw=open('/mnt/d/project/ow/ota/kernel_raw.bin','rb').read()
BASE=0xc0008000
def words(a,n):
    o=a-BASE
    return list(struct.unpack('<%dI'%(n//4),raw[o:o+n]))
def cstr(a,n=24):
    o=a-BASE
    if o<0 or o>=len(raw): return ''
    e=raw.find(b'\0',o)
    return raw[o:e if e>0 and e<o+n else o+n].decode('latin1','replace')
print("unix_stream_ops +0x30..0x40 (setsockopt +0x30, getsockopt +0x34):")
w=words(0xc14a4318,0x48)
for off,nm in [(0x30,'setsockopt'),(0x34,'getsockopt'),(0x38,'sendmsg'),(0x3c,'recvmsg')]:
    print(f"  +{off:02x} {nm} = {w[off//4]:08x}")
print("unix_dgram_ops getsockopt = %08x"%words(0xc14a43a0,0x38)[0x34//4])
print("sock_common_getsockopt = c0d82ea8")
# find unix struct protos: scan writable data for proto whose +? name string == "UNIX"
# struct proto: name is at offset... dump netlink/l2cap/sco protos full 0x40
for nm,a in [('netlink_proto',0xc1c03c08),('l2cap_proto',0xc1c0a6c0),('sco_proto',0xc1c0a7c4)]:
    ww=words(a,0x44)
    print(f"\n== {nm} {a:08x}")
    for k in range(0,0x44,4):
        v=ww[k//4]
        tag=''
        if 0xc1b00000<=v<0xc1d00000:
            s=cstr(v,12)
            if s.isprintable() and len(s)>=3: tag='str "%s"'%s
        print(f"  +{k:02x} = {v:08x} {tag}")