Exploit databaseDownload repository ZIP
GH-30e76a71e7d985cfcfb3db9ddfb9e427
dinosn/php-cve-2026-10961x-lab-poc
Sources for CVE-2026-10961
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files6
dinosn/php-cve-2026-10961x-lab-pocRevision 6e0989762b58
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
ninebie/parse_pages.py
Python · 1,477 bytes#!/usr/bin/env python3
"""parse_pages.py LOG - extract bin-run page maps and dangling-ref placement.
BIN_SLOW bin=N is followed by PAGE_REQ/PAGE_ALLOC for the new run; associate.
Phases: A = before the first MM_SAFE_ERROR, B = after it.
"""
import re
import sys
path = sys.argv[1]
bins = {"A": {}, "B": {}}
phase = "A"
refs = []
lines = open(path, "rb").read().decode("latin1", "replace").splitlines()
pending = None
for ln in lines:
if "MM_SAFE_ERROR" in ln and phase == "A":
phase = "B"
m = re.search(r"BIN_SLOW bin=(\d+)", ln)
if m:
pending = int(m.group(1))
continue
m = re.search(r"PAGE_ALLOC pages=(\d+) ret=.*poff=(0x[0-9a-f]+)", ln)
if m and pending is not None:
pages = int(m.group(1))
poff = int(m.group(2), 16)
bins[phase].setdefault(pending, []).append((poff, pages))
pending = None
continue
m = re.search(r"TRACK_INIT .*ref=(0x[0-9a-f]+).*refbytes=([0-9a-f]+)", ln)
if m:
refs.append((phase, int(m.group(1), 16), m.group(2)))
for ph in ("A", "B"):
print("== phase", ph)
for b in sorted(bins[ph]):
pages = bins[ph][b]
print(" bin %2d: %s" % (b, " ".join("%#x(%dp)" % (p, n) for p, n in pages)))
for ph, ref, rb in refs:
print("REF phase=%s ref=%#x page=%#x off_in_page=%#x mod56=%#x bytes0=%s"
% (ph, ref, (ref & ~0x1FFFFF) + ((ref & 0x1FFFFF) // 0x1000) * 0x1000,
ref & 0xFFF, (ref & 0xFFF) % 0x38, rb[:32]))