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 files678
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
Next files →

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

analysis/find_hook_entry.py

Python · 2,061 bytes
import sys
sys.path.insert(0, 'pylibs')
import struct

with open('kernel_raw.bin', 'rb') as f:
    data = f.read()
BASE = 0xC0008000

# Search for 0xc0472a40 in data section (security_hook_list entries)
target = 0xc0472a40
target_bytes = struct.pack('<I', target)
print(f"=== Searching for 0x{target:08x} in data ===")
idx = 0
while True:
    idx = data.find(target_bytes, idx)
    if idx < 0:
        break
    addr = BASE + idx
    if 0xc1000000 <= addr < 0xc1c00000:
        # Check if this looks like a security_hook_list (hook at offset 8 or 12)
        for off in [8, 12, 0, 4, 16]:
            if idx >= off:
                ctx = struct.unpack('<I', data[idx-off:idx-off+4])[0]
                print(f"  Found at 0x{addr:08x}, context[-{off}] = 0x{ctx:08x}")
        # Print surrounding data
        print(f"  Context:")
        for j in range(-8, 24, 4):
            v = struct.unpack('<I', data[idx+j:idx+j+4])[0]
            tag = ""
            if 0xc0008000 <= v < 0xc1000000: tag = " <code>"
            elif 0xc1000000 <= v < 0xc1c00000:
                tag = " <data>"
                if v-BASE < len(data):
                    sb = data[v-BASE:v-BASE+32]
                    null = sb.find(b'\x00')
                    if null > 0 and all(32 <= b < 127 for b in sb[:null]):
                        tag += f' "{sb[:null].decode()}"'
            print(f"    {j:+4d}: 0x{v:08x}{tag}")
    idx += 1

# Also search for 0xc0472a54
target2 = 0xc0472a54
target_bytes2 = struct.pack('<I', target2)
print(f"\n=== Searching for 0x{target2:08x} in data ===")
idx = 0
while True:
    idx = data.find(target_bytes2, idx)
    if idx < 0:
        break
    addr = BASE + idx
    if 0xc1000000 <= addr < 0xc1c00000:
        print(f"  Found at 0x{addr:08x}")
        for j in range(-8, 24, 4):
            v = struct.unpack('<I', data[idx+j:idx+j+4])[0]
            tag = ""
            if 0xc0008000 <= v < 0xc1000000: tag = " <code>"
            elif 0xc1000000 <= v < 0xc1c00000: tag = " <data>"
            print(f"    {j:+4d}: 0x{v:08x}{tag}")
    idx += 1