#!/bin/sh # Builds the PoC runner image and starts both differential target containers # on the dedicated lab network, then prints the endpoints. set -ex ROOT=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P) NET=cve2026107360lab podman network create "$NET" 2>/dev/null || true podman rm -f cve107360-vuln cve107360-fixed 2>/dev/null || true podman build -t cve-2026-107360-poc:local -f "$ROOT/poc/Dockerfile" "$ROOT/poc" podman run -d --name cve107360-vuln --cpus 2 --memory 4g --network "$NET" \ -p 28081:8080 cve-2026-107360:vuln podman run -d --name cve107360-fixed --cpus 2 --memory 4g --network "$NET" \ -p 28082:8080 cve-2026-107360:fixed sleep 3 podman logs cve107360-vuln | head -3 podman logs cve107360-fixed | head -3 echo "vulnerable target: http://127.0.0.1:28081" echo "fixed target: http://127.0.0.1:28082"