Exploit database

GH-9dc504b8e28c55415e7f17b0471203fc

d1a0y1bb/php2shell-poc

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 files6
d1a0y1bb/php2shell-pocRevision a9d3ebefc209

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

env/i064/start.sh

Shell · 1,320 bytes
#!/usr/bin/env bash
# Start the i064 single-worker stock-PHP harness inside an existing lab container.
# The application tree is the official WordPress 7.1.3 tree at /var/www/html/wordpress,
# untouched; no PHP ini override is installed.
set -euo pipefail
CONTAINER=${CONTAINER:-php2shell-lab}
cd "$(dirname "$0")"
podman exec "$CONTAINER" mkdir -p /tmp/i064
podman cp apache-i064.conf "$CONTAINER":/tmp/i064/apache_app2.conf
podman exec "$CONTAINER" bash -lc '
  test ! -e /etc/php/8.5/apache2/conf.d/99-lab.ini || { echo "99-lab.ini present; stock-php requirement not met" >&2; exit 1; }
  if [ -f /tmp/i064/app2_httpd.pid ]; then kill "$(cat /tmp/i064/app2_httpd.pid)" 2>/dev/null || true; fi
  for _ in $(seq 1 100); do pgrep -f apache_app2.conf >/dev/null || break; sleep .1; done
  rm -f /tmp/i064/app2_error.log /tmp/i064/app2_httpd.pid
  /usr/sbin/apache2 -f /tmp/i064/apache_app2.conf
'
for i in $(seq 1 60); do
  code=$(podman exec "$CONTAINER" curl -s -o /dev/null -w '%{http_code}' -m 2 http://127.0.0.1:19066/wordpress/wp-login.php || true)
  [ "$code" = 200 ] && { echo "i064 harness up: pid=$(podman exec "$CONTAINER" cat /tmp/i064/app2_httpd.pid) port=19066"; exit 0; }
  sleep .3
done
echo "i064 harness failed to start" >&2
podman exec "$CONTAINER" tail -20 /tmp/i064/app2_error.log >&2 || true
exit 1