Exploit databaseDownload repository ZIP
GH-14fb583d3d1bd2da10251bb1a37b93d6
gitchw/ghostlock-cve-2026-43499
Sources for CVE-2026-43499
170 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files678
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
- ↑..Parent directory
- analyze_copy_funcs.py
- analyze_func2.py
- analyze_select.py
- analyze_stack.py
- analyze_stamps.py
- analyze_stamps2.py
- analyze_syscall.py
- analyze_targets.py
- analyze_vector.py
- bfs_stamp_search.py
- calc_overlap.py
- chain_disasm.txt
- check_288.py
- check_4e8.py
- check_9978.py
- check_adjtimex.py
- check_adjust_call.py
- check_adjust_pi.py
- check_adjust_pi2.py
- check_adjust_prio.py
- check_after_enqueue.py
- check_ashmem_funcs.py
- check_bc24.py
- check_bfi.py
- check_bind_wrapper.py
- check_bitmap.py
- check_bugons.py
- check_caller.py
- check_candidate.py
- check_candidates.py
- check_capable.py
- check_chain2.py
- check_cleanup.py
- check_cleanup2.py
- check_cleanup_funcs.py
- check_code_ptr.py
- check_comm_tail.py
- check_commit_creds.py
- check_config.py
- check_copy_funcs.py
- check_cred_overwrite.py
- check_css_frame.py
- check_dequeue.py
- check_dequeue_funcs.py
- check_e9248_path.py
- check_e9248_path2.py
- check_e9248_safe.py
- check_edeadlk_handler.py
- check_edeadlk_path.py
- check_enqueue_full.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
analysis/examine_cred_like.py
Python · 2,986 bytesimport sys
sys.path.insert(0, 'pylibs')
import struct
from capstone import Cs, CS_ARCH_ARM, CS_MODE_ARM
with open('kernel_raw.bin', 'rb') as f:
data = f.read()
BASE = 0xC0008000
md = Cs(CS_ARCH_ARM, CS_MODE_ARM)
# Examine cred-like structure at 0xc1b173e8
print("=== Structure at 0xc1b173e8 (cred candidate) ===")
for off in range(0, 0x60, 4):
val = struct.unpack('<I', data[0xc1b173e8-BASE+off:0xc1b173e8-BASE+off+4])[0]
labels = {0:'usage',4:'uid',8:'gid',0xc:'suid',0x10:'sgid',0x14:'euid',
0x18:'egid',0x1c:'fsuid',0x20:'fsgid',0x24:'securebits',
0x28:'cap_inh',0x2c:'cap_inh+4',0x30:'cap_prm',0x34:'cap_prm+4',
0x38:'cap_eff',0x3c:'cap_eff+4'}
label = labels.get(off, '')
print(f" +0x{off:02x}: 0x{val:08x} {label}")
# Check what references 0xc1b115ac (the BSS pointer to this cred)
print("\n=== References to BSS 0xc1b115ac ===")
target = 0xc1b115ac
target_lo = target & 0xffff
target_hi = (target >> 16) & 0xffff
for i in range(0, len(data) - 8, 4):
inst1 = struct.unpack('<I', data[i:i+4])[0]
inst2 = struct.unpack('<I', data[i+4:i+8])[0]
if (inst1 & 0x0ff00000) == 0x03000000:
val = ((inst1 >> 16) & 0xf) | (inst1 & 0xf00) | ((inst1 & 0xf0000) >> 4)
if val == target_lo and (inst2 & 0x0ff00000) == 0x03400000:
val2 = ((inst2 >> 16) & 0xf) | (inst2 & 0xf00) | ((inst2 & 0xf0000) >> 4)
if val2 == target_hi:
addr = BASE + i
print(f" Code ref at 0x{addr:08x}")
code = data[max(0,i-12):i+20]
start = max(BASE, addr-12)
for ins in md.disasm(code, start):
print(f' 0x{ins.address:08x}: {ins.mnemonic}\t{ins.op_str}')
# Also check 0xc1b11acc -> 0xc1b323b0
print("\n=== Structure at 0xc1b323b0 ===")
for off in range(0, 0x40, 4):
val = struct.unpack('<I', data[0xc1b323b0-BASE+off:0xc1b323b0-BASE+off+4])[0]
print(f" +0x{off:02x}: 0x{val:08x}")
# Check references to 0xc1b11acc
target = 0xc1b11acc
target_lo = target & 0xffff
target_hi = (target >> 16) & 0xffff
for i in range(0, len(data) - 8, 4):
inst1 = struct.unpack('<I', data[i:i+4])[0]
inst2 = struct.unpack('<I', data[i+4:i+8])[0]
if (inst1 & 0x0ff00000) == 0x03000000:
val = ((inst1 >> 16) & 0xf) | (inst1 & 0xf00) | ((inst1 & 0xf0000) >> 4)
if val == target_lo and (inst2 & 0x0ff00000) == 0x03400000:
val2 = ((inst2 >> 16) & 0xf) | (inst2 & 0xf00) | ((inst2 & 0xf0000) >> 4)
if val2 == target_hi:
addr = BASE + i
print(f" Code ref to 0xc1b11acc at 0x{addr:08x}")
# Let's also look at what's around 0xc1b115ac in BSS
print("\n=== BSS around 0xc1b115ac ===")
for off in range(-0x20, 0x30, 4):
addr = 0xc1b115ac + off
val = struct.unpack('<I', data[addr-BASE:addr-BASE+4])[0]
tag = ""
if 0xc1b00000 <= val < 0xc1c00000: tag = " <bss>"
print(f" 0x{addr:08x} ({off:+d}): 0x{val:08x}{tag}")