用于 React2Shell 漏洞的 HackIndex.io 沙箱环境。 这将在 3000 端口启动一个 Web 应用,并在 2222 端口启动一个 SSH 服务器。
docker compose up --build --force-recreate
ssh [email protected] -p 2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
docker compose down -v
cd /app # Change to the web app directory
npm audit # Check for issues
supervisorctl stop next # Stop the web app
npm audit fix --force # Fix the security issues
npm run build # Rebuild the web app
supervisorctl start next # Start the web app