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

Python · 1,003 bytes
#!/usr/bin/env python3
from capstone import *
from elftools.elf.elffile import ELFFile
ELF=r'/mnt/d/project/ow/ota/oppo_kernel.elf'
f=open(ELF,'rb'); elf=ELFFile(f)
def load(addr,n):
    seg=[s for s in elf.iter_segments() if s['p_type']=='PT_LOAD' and s['p_vaddr']<=addr<s['p_vaddr']+s['p_filesz']][0]
    return seg.data()[addr-seg['p_vaddr']:addr-seg['p_vaddr']+n]
md=Cs(CS_ARCH_ARM,CS_MODE_ARM|CS_MODE_LITTLE_ENDIAN)
def reglist(w):
    names=['r0','r1','r2','r3','r4','r5','r6','r7','r8','r9','r10','r11','r12','sp','lr','pc']
    return ','.join(names[b] for b in range(16) if w & (1<<b))
for a,label in [(0xc013e734,'__se_sys_prctl'),(0xc01e3d5c,'__se_sys_futex'),(0xc01e1a3c,'do_futex')]:
    print('====',label)
    for i in md.disasm(load(a,16),a):
        extra=''
        if i.mnemonic=='push':
            raw=int.from_bytes(i.bytes,'little'); extra=' ; {%s}'%reglist(raw&0xffff)
        print('%08x  %08x  %-6s %s%s'%(i.address,int.from_bytes(i.bytes,'little'),i.mnemonic,i.op_str,extra))