Skip to content

ogtamimi/OGT-Cyber-Game

Repository files navigation

๐ŸŽฎ OGT Cybersecurity Learning Game

An interactive, modern, animated cybersecurity learning platform built by OGT.
This game teaches web security vulnerabilities through hands-on levels, real attack simulations, hints, animations, and mini-tutorials.

License: MIT


๐ŸŒ Live Demo

๐Ÿ‘‰ https://ogtamimi.github.io/OGT-Cyber-Game/


๐Ÿš€ Features

  • ๐ŸŽฏ 3 Fully Interactive Vulnerability Levels

    • SQL Injection (Login Bypass)
    • Cross-Site Scripting (XSS)
    • IDOR (Unauthorized Access)
  • โœจ Modern Animated UI (React + Vite)

  • ๐Ÿ’ก Dynamic Hint System

  • ๐Ÿ“˜ Mini Tutorials for Each Level

  • ๐ŸŽ‰ Success Animations + Flags

  • ๐Ÿ—‚ LocalStorage Progress Tracking

  • ๐Ÿ“ฑ Fully Responsive Design

  • ๐Ÿ‘จโ€๐Ÿ’ป Includes Realistic Vulnerable PHP Endpoints


๐Ÿงฉ Levels Overview

โญ Level 1 โ€“ SQL Injection

Learn how login bypass works using classic ' OR '1'='1.

โญ Level 2 โ€“ XSS

Inject JavaScript and see how websites become vulnerable.

โญ Level 3 โ€“ IDOR

Access hidden files by modifying URL parameters.


โš™๏ธ Tech Stack

  • React + Vite
  • TypeScript
  • TailwindCSS
  • CSS Animations
  • PHP (vulnerable backend)
  • GitHub Pages Hosting

๐Ÿ›  Installation

1๏ธโƒฃ Clone the repository

git clone https://github.com/ogtamimi/OGT-Cyber-Game.git
cd OGT-Cyber-Game

2๏ธโƒฃ Install dependencies

npm install

3๏ธโƒฃ Run the development server

npm run dev

4๏ธโƒฃ Build the production version

npm run build

5๏ธโƒฃ Deploy to GitHub Pages (optional)

npm run deploy

๐Ÿ“ Notes

  • Requires Node.js 18+
  • .env.local is optional (for API keys)
  • Final build output is inside the /dist folder

๐Ÿ“‚ Project Structure

OGT-Cyber-Game/
โ”‚
โ”œโ”€โ”€ assets/
โ”‚   โ””โ”€โ”€ screenshots/
โ”‚       โ”œโ”€โ”€ screenshot1.png
โ”‚       โ”œโ”€โ”€ screenshot2.png
โ”‚       โ””โ”€โ”€ screenshot3.png
โ”‚
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ App.tsx
โ”‚   โ”œโ”€โ”€ index.tsx
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ Confetti.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ Icons.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ TutorialContent.tsx
โ”‚   โ”‚   โ””โ”€โ”€ UI.tsx
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ levels/
โ”‚       โ”œโ”€โ”€ Level1SQLi.tsx
โ”‚       โ”œโ”€โ”€ Level2XSS.tsx
โ”‚       โ””โ”€โ”€ Level3IDOR.tsx
โ”‚
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ package-lock.json
โ”œโ”€โ”€ tsconfig.json
โ”œโ”€โ”€ vite.config.ts
โ””โ”€โ”€ .gitignore

๐Ÿ–ผ๏ธ Screenshots

๐Ÿ  Home Page

Home

๐ŸŽฎ Level Example

Level

๐Ÿ† Brief Screen

Brief


๐Ÿ‘‘ Author

OGT
๐Ÿ”— GitHub: https://github.com/ogtamimi
๐Ÿ“ง Contact: ogttamimi@gmail.com


๐Ÿ“œ License

MIT License (c) 2025 OGT This project is open-source for learning and educational use.

About

A modern, animated cybersecurity learning game built with React + Vite. Learn SQLi, XSS, and IDOR with real attack simulations.

Topics

Resources

License

Stars

Watchers

Forks

Contributors