A full-stack hacker simulation game where players infiltrate systems, complete missions, and climb ranks.
https://shadow-terminal-production.up.railway.app/
Shadow Terminal is an interactive terminal-based hacking simulation built with a secure backend-driven architecture.
Players progress through missions like:
- Reconnaissance
- SSH Infiltration
- Privilege Escalation
- Data Extraction
- Covering Tracks
All commands are validated on the server-side, preventing cheating and ensuring realistic gameplay.
- Backend: Node.js, Express
- Database: SQLite
- Auth: JWT (httpOnly cookies), bcrypt
- Frontend: HTML, CSS, JavaScript
- Security: Helmet, Rate Limiting
- 🎯 5 Mission storyline with multiple objectives
- 🧪 Realistic terminal command simulation
- 🔐 Secure authentication system
- 📈 XP, Level, and Score tracking
- 🏆 Global leaderboard
- ⏱️ Server-controlled timer (anti-cheat)
- 💾 Session persistence
Client (UI) → API → Server Logic → Database
- Frontend = UI only (no answers exposed)
- Backend = all validation, logic, scoring
- Secure design prevents client-side manipulation
Shadow-Terminal/
├── server.js
├── missions.js (hidden)
├── db.js
├── auth.js
├── middleware.js
└── public/
└── index.html
git clone <repo-url>
cd Shadow-Terminal
npm install
npm startOpen: http://localhost:3000
- Server-side game logic (no client leaks)
- JWT stored in httpOnly cookies
- Rate limiting on commands & auth
- Input sanitization
- No eval usage
- Multiplayer hacking battles
- Real CTF-style challenges
- Advanced exploit chains
- Dark mode themes & UI upgrades