
بيئة اختبار معزولة من HackIndex.io لثغرة React2Shell.
بيئة اختبار HackIndex.io لثغرة React2Shell. سيقوم هذا بتشغيل تطبيق ويب على المنفذ 3000، وخادم SSH على المنفذ 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