Exploit database

GH-72afa39c5503b08df91d137c1fb6b005

abenezer101/php2shell

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-109618

412 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files11
abenezer101/php2shellRevision e152017ffdb5

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

demo.sh

Suggested starting fileShell · 1,024 bytes
#!/usr/bin/env bash
# End-to-end demo: fake vulnerable PHP host -> scan -> code-base audit -> fixes.
# Nothing outside a temp directory is modified.
set -euo pipefail

PORT="${PORT:-8089}"
HERE="$(cd "$(dirname "$0")" && pwd)"
WORK="$(mktemp -d)"

cleanup() { [[ -n "${SERVER_PID:-}" ]] && kill "$SERVER_PID" 2>/dev/null || true; }
trap cleanup EXIT

echo "==> starting fake PHP 8.1.2 host on port $PORT"
python3 "$HERE/examples/fake_php_host.py" --port "$PORT" --version 8.1.2 >/dev/null 2>&1 &
SERVER_PID=$!
sleep 1.5

echo "==> copying the sample project to $WORK/app"
cp -r "$HERE/examples/sample-app" "$WORK/app"

echo
echo "==> scan + audit + plan fixes (offline mock engine, dry run)"
python3 "$HERE/php2shell.py" scan "http://127.0.0.1:$PORT" \
    --probe \
    --codebase "$WORK/app" \
    --fix \
    --llm-provider mock \
    --dry-run \
    --report-dir "$WORK/reports"

echo
echo "==> reports:"
ls -1 "$WORK/reports"
echo
echo "==> now try the interactive flow yourself:"
echo "    python3 $HERE/php2shell.py"