Exploit databaseDownload repository ZIP
GH-51691b62ba6b070d18237debe97465f1
leviticus-triage/php2shell-unchained
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files47
leviticus-triage/php2shell-unchainedRevision f84fd219522e
- ↑..Parent directory
- lib/
- docker-env.sh
- engage-listen.py
- engage-operator.sh
- fetch-jackalsyn.sh
- fetch-reverse-shell.sh
- fetch-singularity.sh
- fetch-sliver.sh
- fetch-zer061.sh
- install-commands.sh
- install-cursor-mcp.sh
- jackalsyn-resolve-dtor.sh
- lab-apache-multi-up.sh
- lab-apache-up.sh
- lab-assess.sh
- lab-dispatch.sh
- lab-doctor.sh
- lab-ensure-stack.sh
- lab-external.sh
- lab-help.sh
- lab-jackalsyn.sh
- lab-monitored-run.sh
- lab-patch-audit.sh
- lab-rce.sh
- lab-reverse-shell.sh
- lab-session.sh
- lab-singularity-container.sh
- lab-singularity-detect.sh
- lab-singularity-host.sh
- lab-singularity-vm.sh
- lab-singularity.sh
- lab-sliver.sh
- lab-test.sh
- lab-tor.sh
- lab-tunnel.sh
- lab-up.sh
- lab-validation-matrix.sh
- lab-workarounds.sh
- lab-workflow-verify.sh
- lab-zer061-docs.sh
- lab-zer061-exploit-list.sh
- lab-zer061-scan.sh
- lab-zer061-shell.sh
- lab-zer061-tools.sh
- lab-zer061.sh
- make-export-archive.sh
- php2shell-unchained-menu.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
scripts/fetch-zer061.sh
Shell · 1,877 bytes#!/usr/bin/env bash
# Clone Zer061-style mod_php heap kit into third_party/ (authorized lab use).
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
DEST="$ROOT/third_party/zer061-php2shell"
if [[ -d "$DEST/.git" && -f "$DEST/exploit.py" ]]; then
echo "[fetch-zer061] Already present: $DEST"
echo " Update: git -C \"$DEST\" pull --ff-only"
exit 0
fi
try_clone() {
local url="$1" tmp="${DEST}.clone.$$"
echo "[fetch-zer061] try $url"
rm -rf "$tmp"
mkdir -p "$ROOT/third_party"
if ! git clone --depth 1 "$url" "$tmp" 2>/dev/null; then
rm -rf "$tmp"
return 1
fi
if [[ -d "$DEST" ]]; then
chmod -R u+w "$DEST" 2>/dev/null || true
rm -rf "$DEST" 2>/dev/null || true
fi
mv "$tmp" "$DEST"
if [[ -f "$DEST/exploit.py" ]]; then
return 0
fi
if [[ -f "$DEST/poc.py" ]]; then
ln -sf poc.py "$DEST/exploit.py"
echo "[fetch-zer061] WARN: exploit.py → poc.py (evtl. kein docker/ Layout)"
return 0
fi
rm -rf "$DEST"
return 1
}
# ZER061_REPO = single URL; ZER061_FALLBACKS = comma-separated extras
REPOS=()
if [[ -n "${ZER061_REPO:-}" ]]; then
REPOS+=("$ZER061_REPO")
fi
REPOS+=(
"https://github.com/Zer061/CVE-2026-109618.git"
"https://github.com/Chr1s-T/php2shell-cve-2026-109618.git"
)
if [[ -n "${ZER061_FALLBACKS:-}" ]]; then
IFS=',' read -ra extra <<< "$ZER061_FALLBACKS"
REPOS+=("${extra[@]}")
fi
seen=""
for repo in "${REPOS[@]}"; do
repo="$(printf '%s' "$repo" | tr -d '[:space:]')"
[[ -z "$repo" ]] && continue
[[ "$seen" == *"|$repo|"* ]] && continue
seen="${seen}|$repo|"
if try_clone "$repo"; then
echo "[fetch-zer061] OK → $DEST"
echo " exploit: $DEST/exploit.py"
exit 0
fi
done
cat >&2 <<EOF
[fetch-zer061] FEHLER: kein Klon mit exploit.py/poc.py.
export ZER061_REPO='https://github.com/<mirror>.git'
export ZER061_FALLBACKS='url1,url2'
$0
EOF
exit 1