cd Stand
docker compose up --build
The vulnerable app runs at: http://localhost:3011
2. 运行安全 PoC 扫描器
bash
cd PoC/src
poetry install
poetry run python scanner.py http://localhost:3011
✅ 预期 PoC 输出
text
[*] 扫描目标:http://localhost:3011
[+] 存在漏洞!RCE 已确认。
[+] 命令输出 (id):uid=1001(nextjs)...
[+] 网络测试 (ping) 成功。
[*] 结果已保存到 'result.txt'。
文件 result.txt 将包含:[{"ip": "http://localhost:3011", "vuln": true}]
📁 项目结构
PoC/ – 安全扫描器 (Dockerfile, scanner.py)
Stand/ – 易受攻击的 Next.js 应用 (Docker)
README.md – 本文件