
Un ambiente sandbox di HackIndex.io per la vulnerabilità React2Shell.
Un ambiente sandbox HackIndex.io per la vulnerabilità React2Shell. Questo avvierà un'app web sulla porta 3000 e un server SSH sulla porta 2222.
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