Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

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 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/xref_proc_fops.py

Python · 1,117 bytes
#!/usr/bin/env python3
# Find code/data references to the two writable proc fops and the proc_create
# name string used at registration.
import struct,re
BASE=0xC0008000
d=open(r'/mnt/d/project/ow/ota/kernel_raw.bin','rb').read(); N=len(d)
def cstr(va,ml=120):
    o=va-BASE
    if o<0 or o>=N: return None
    out=b''
    for b in d[o:o+ml]:
        if b==0: break
        if b<0x20 or b>0x7e: return None
        out+=bytes([b])
    return out.decode() if out else None
def find_ptrs(target):
    needle=struct.pack('<I',target); res=[]; i=d.find(needle)
    while i!=-1:
        res.append(BASE+i); i=d.find(needle,i+4)
    return res
for name,fa in (('device_switch_proc_fops',0xc1bc8ca8),
                ('enable_ship_mode_proc_fops',0xc1bc8f90)):
    print('====',name)
    for r in find_ptrs(fa):
        print(' ref at %08x'%r)
        # dump surrounding data words; strings may be nearby
        for off in range(-0x20,0x24,4):
            v=struct.unpack_from('<I',d,r-BASE+off)[0]
            tag=''
            s=cstr(v)
            if s: tag=' str=%r'%s
            print('   %+04x %08x%s'%(off,v,tag))