Exploit databaseDownload repository ZIP
GH-14fb583d3d1bd2da10251bb1a37b93d6
gitchw/ghostlock-cve-2026-43499
Sources for CVE-2026-43499
165 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/find_stack_copy.py
Python · 1,782 bytesimport struct
from capstone import *
with open('kernel_raw.bin', 'rb') as f:
data = f.read()
BASE = 0xC0008000
md = Cs(CS_ARCH_ARM, CS_MODE_ARM)
# Search for copy_from_user calls where the destination is sp+0x98 or nearby
# copy_from_user is at 0xc103e2b8
# We look for: add rD, sp, #0x98 followed by bl copy_from_user
# Also check sp+0x90 to sp+0xa0 range
# Pattern: add rD, sp, #imm where imm is around 0x98
# Then bl 0xc103e2b8 within next 20 instructions
results = []
for offset in range(0, len(data) - 0x100, 4):
# Look for add rD, sp, #0x98 (encoding: E28D0098 with various Rd)
word = struct.unpack('<I', data[offset:offset+4])[0]
# add Rd, sp, #0x98: cond=0xE, 001 0100 1101 Rn=sp(13) Rd imm
# E28D?098 where ? is Rd
if (word & 0xFFFFF000) == 0xE28D0000 and (word & 0xFFF) in range(0x90, 0xa4):
imm = word & 0xFFF
rd = (word >> 12) & 0xF
# Check if copy_from_user is called within next 20 instructions
found_copy = False
for i in range(1, 25):
next_word = struct.unpack('<I', data[offset+i*4:offset+i*4+4])[0]
# bl 0xc103e2b8: the offset should match
# BL encoding: EBxxxxxx where xxxxxx is the offset
if (next_word & 0xFF000000) == 0xEB000000:
bl_offset = next_word & 0xFFFFFF
if bl_offset & 0x800000:
bl_offset -= 0x1000000
target = BASE + offset + 8 + bl_offset * 4
if target == 0xc103e2b8:
found_copy = True
break
if found_copy:
addr = BASE + offset
results.append((addr, rd, imm))
print(f"0x{addr:08x}: add r{rd}, sp, #0x{imm:x} -> copy_from_user")
print(f"\nTotal: {len(results)}")