Exploit database

GH-19839ecba2ea770c09f9bb76196e69e2

1amrahul/php2shell-cve-2026-109618-cve-2026-109619

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 files3

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

lab/stop.sh

Shell · 945 bytes
#!/usr/bin/env bash
# stop.sh - stop the lab target and show how the worker died, if it did.
set -uo pipefail

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
STATE="$ROOT/.state"

stopped=0
for f in php.pid wrapper.pid; do
    if [[ -f "$STATE/$f" ]]; then
        pid=$(cat "$STATE/$f" 2>/dev/null || true)
        if [[ -n "${pid:-}" ]] && kill -0 "$pid" 2>/dev/null; then
            kill -TERM "$pid" 2>/dev/null || true
            stopped=1
        fi
        rm -f "$STATE/$f"
    fi
done

# Anything still wedged gets 2 seconds, then SIGKILL.
sleep 0.3
for f in php.pid wrapper.pid; do :; done
pgrep -f "127.0.0.1:${PORT:-18080}.*${ROOT}/www" 2>/dev/null | while read -r p; do
    kill -KILL "$p" 2>/dev/null || true
done

if [[ -f "$STATE/exit.log" ]]; then
    echo "[i] worker exit status: $(cat "$STATE/exit.log")"
fi
if [[ "$stopped" == "1" ]]; then
    echo "[+] target stopped"
else
    echo "[i] target was not running"
fi