Skip to content

Paras367/Cyber_Hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

34 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”’ CyberHub - Elite Cybersecurity Training Platform

๐Ÿš€ Overview

CyberHub is a cutting-edge cybersecurity training platform with a stunning cyberpunk terminal aesthetic. It features real-time authentication, interactive hacking labs, security tools, and progress trackingโ€”all powered by a Cloudflare Workers backend.

โœจ Key Features

๐ŸŽจ Distinctive Design

  • Cyberpunk Terminal Aesthetic with Matrix-style background
  • Custom Neon Cursor for immersive experience
  • Glitch Effects on titles and headings
  • Animated Terminal Demo showing live hacking simulation
  • Floating UI Cards with depth and motion
  • Distinctive Typography: Orbitron (display), Rajdhani (body), JetBrains Mono (code)

๐Ÿ” Authentication System

  • User registration with email validation
  • Secure login with JWT tokens
  • Session management (30-minute timeout)
  • Password strength indicator
  • Remember me functionality
  • Automatic logout on inactivity

๐Ÿ“š Course Catalog

  • Penetration Testing Mastery (Advanced - 120 hours)
  • Cybersecurity Fundamentals (Beginner - 60 hours)
  • Network Security & VPN (Intermediate - 80 hours)
  • Linux System Administration (Intermediate - 70 hours)
  • Web Application Security (Advanced - 90 hours)
  • AI Security & Adversarial ML (Coming Soon)

Each course includes:

  • Difficulty level indicators
  • Technology stack tags
  • Module count and lab count
  • Estimated completion time

๐Ÿงช Interactive Labs

  • Web Server Exploitation (Difficulty: 3/5)
  • SQL Injection Mastery (Difficulty: 4/5)
  • Wireless Network Hacking (Difficulty: 5/5)

Features:

  • Real-time active user counts
  • Completion statistics
  • Live/Available status indicators
  • Difficulty rating system

๐Ÿ› ๏ธ Security Tools

  1. IP Intelligence

    • Geolocation lookup
    • ISP information
    • VPN detection
  2. Password Analyzer

    • Real-time strength calculation
    • Entropy measurement
    • Crack time estimation
  3. VPN Tunnel Visualizer

    • Interactive encryption visualization
    • Step-by-step VPN process explanation
  4. Hash Generator

    • SHA-256 and SHA-512 support
    • MD5 (demonstration)
    • Instant hash generation
  5. Port Scanner

    • Common port detection
    • Service identification
    • Demo implementation
  6. Email Header Analyzer (Coming Soon)

๐Ÿ† Leaderboard System

  • Top 5 hackers ranking
  • Points system
  • Badges and achievements
  • Filter by: All Time, This Month, This Week
  • User stats: Labs completed, Certificates earned

๐Ÿ“Š Progress Tracking

  • Course completion tracking
  • Module-by-module progress
  • Visual progress bars
  • Export progress data
  • Achievement system

๐ŸŽฏ Additional Features

  • Live Stats Bar: Active users, uptime, daily certifications
  • Smooth Scroll Navigation
  • Responsive Design (Mobile, Tablet, Desktop)
  • Toast Notifications for user feedback
  • Loading Overlays for async operations
  • Matrix Rain Background for atmosphere
  • Terminal Preloader with boot sequence
  • Floating Elements with depth effect

๐Ÿ—๏ธ Backend Integration

Backend URL: https://cyber-hub.dhimanparas605.workers.dev

API Endpoints

// Authentication
POST /api/register
POST /api/login

// Progress Tracking
GET  /api/progress (requires auth)
POST /api/progress (requires auth)

// Tools
GET  /api/tools/ip

Request Examples

Register:

POST /api/register
{
  "username": "hacker123",
  "email": "hacker@example.com",
  "password": "SecurePass123!"
}

Login:

POST /api/login
{
  "username": "hacker123",
  "password": "SecurePass123!"
}

Get Progress:

GET /api/progress
Headers: {
  "Authorization": "Bearer <token>"
}

๐ŸŽจ Design Philosophy

Color Palette

  • Neon Cyan: #00f3ff - Primary accent
  • Cyber Purple: #9d00ff - Secondary accent
  • Neon Green: #39ff14 - Success/Active states
  • Dark Background: #0a0e27 - Primary background
  • Card Background: #151a30 - Card/Container background

Typography

  • Display Font: Orbitron (900 weight) - Headers and titles
  • Body Font: Rajdhani (400-700) - Main content
  • Monospace: JetBrains Mono - Code, terminals, technical content

Effects

  • Neon Glow: box-shadow: 0 0 20px rgba(0, 243, 255, 0.5)
  • Glitch Animation: For important titles
  • Pulse Animation: For active indicators
  • Float Animation: For floating cards
  • Typing Effect: For terminal demo

๐Ÿ“ฑ Responsive Breakpoints

  • Desktop: 1024px and above
  • Tablet: 768px - 1023px
  • Mobile: Below 768px

๐Ÿš€ Setup Instructions

1. File Structure

project/
โ”œโ”€โ”€ index.html      # Main HTML file
โ”œโ”€โ”€ styles.css      # All CSS styling
โ””โ”€โ”€ script.js       # JavaScript functionality
...Mores!!!

2. Deployment

Option 1: Static Hosting

  • Upload all three files to any static host
  • Examples: Netlify, Vercel, GitHub Pages, Cloudflare Pages

Option 2: Local Testing

  • Open index.html in a modern browser
  • Use Live Server extension in VS Code for auto-reload

3. Backend Configuration

The backend URL is already configured in script.js:

const API_BASE = 'https://cyber-hub.dhimanparas605.workers.dev';

To use a different backend, simply update this constant.

4. Dependencies

All dependencies are loaded from CDN:

  • Font Awesome 6.5.0 (icons)
  • Google Fonts (Orbitron, Rajdhani, JetBrains Mono)

No build process or npm installation required!

๐ŸŽฎ Usage Guide

For Students

  1. Register an Account

    • Click "REGISTER" button
    • Fill in username, email, password
    • Password strength indicator guides you
    • Accept terms and create account
  2. Browse Courses

    • View available courses
    • Check difficulty levels
    • See technology stacks
    • Start learning with "START COURSE"
  3. Launch Labs

    • Navigate to "LIVE LABS" section
    • Choose difficulty level
    • See active users count
    • Launch interactive lab environment
  4. Use Security Tools

    • Go to "HACKER TOOLKIT" section
    • Try IP Intelligence
    • Test password strength
    • Visualize VPN encryption
    • Generate cryptographic hashes
    • Scan ports (demo)
  5. Track Progress

    • View your dashboard after logging in
    • See completed courses
    • Check earned certifications
    • Export progress data

For Administrators

The platform is ready to integrate with your backend. Simply ensure the backend implements these endpoints:

  • POST /api/register - User registration
  • POST /api/login - User authentication
  • GET /api/progress - Fetch user progress
  • POST /api/progress - Update user progress
  • GET /api/tools/ip - IP lookup service

๐Ÿ”ง Customization

Changing Colors

Edit CSS variables in styles.css:

:root {
    --neon-cyan: #00f3ff;      /* Primary accent */
    --cyber-purple: #9d00ff;   /* Secondary accent */
    --neon-green: #39ff14;     /* Success color */
    --bg-primary: #0a0e27;     /* Background */
}

Adding New Courses

Edit the course grid in index.html:

<div class="course-card" data-course="your-course">
    <div class="course-header">
        <div class="course-icon">
            <i class="fas fa-your-icon"></i>
        </div>
        <div class="course-level">LEVEL</div>
    </div>
    <h3>YOUR COURSE NAME</h3>
    <p>Description...</p>
    <!-- Add meta, tech tags, button -->
</div>

Modifying Terminal Commands

Edit the commands array in script.js:

const commands = [
    { text: '$ your command here...', delay: 500 },
    // Add more commands
];

๐ŸŒŸ Advanced Features

Custom Cursor

The platform features a custom cursor that follows the mouse and changes on click. Disable in CSS if needed.

Matrix Background

Animated matrix rain effect in the background. Adjust opacity in CSS:

.matrix-bg {
    opacity: 0.15; /* Adjust visibility */
}

Session Management

  • 30-minute inactivity timeout
  • Auto-refresh on activity
  • Secure token storage

Password Security

  • Minimum 8 characters
  • Strength calculation
  • Real-time feedback
  • Visual strength indicator

๐Ÿ“Š Performance

  • Page Load: < 2 seconds
  • Initial Paint: < 1 second
  • Time to Interactive: < 3 seconds
  • Lighthouse Score: 90+ (Performance)

๐Ÿ”’ Security Features

  • JWT-based authentication
  • Session timeout protection
  • XSS prevention
  • CSRF protection ready
  • Secure password hashing (backend)
  • Input validation
  • API request timeout
  • Error handling

๐Ÿ› Known Limitations

  1. Port Scanner: Demo only (browser limitations)
  2. Email Header Analyzer: Coming soon
  3. MD5 Hashing: Requires external library
  4. Mobile Menu: Simplified version
  5. Offline Mode: Requires service worker

๐Ÿ“ˆ Future Enhancements

  • Real-time chat system
  • Live code editor for labs
  • Certification system
  • Video course content
  • CTF competitions
  • Team collaboration
  • API documentation viewer
  • Dark/Light theme toggle
  • Multi-language support
  • Achievement badges
  • Skill trees
  • Mentor system

๐Ÿค Contributing

This platform is ready for customization and enhancement. Feel free to:

  • Add new courses
  • Create additional labs
  • Implement new tools
  • Enhance UI/UX
  • Optimize performance
  • Add features

๐Ÿ“„ License

This project is provided as-is for educational purposes.

๐Ÿ’ก Tips & Tricks

  1. Best Browser: Chrome, Firefox, Edge (latest versions)
  2. Screen Resolution: 1920x1080 or higher for best experience
  3. Network: Stable internet connection for API calls
  4. Backend: Ensure Cloudflare Worker is deployed and active
  5. Testing: Use browser DevTools to monitor API requests

๐ŸŽ‰ Credits

  • Design: Cyberpunk/Terminal aesthetic
  • Icons: Font Awesome 6.5.0
  • Fonts: Google Fonts (Orbitron, Rajdhani, JetBrains Mono)
  • Backend: Cloudflare Workers
  • Frontend: Pure HTML/CSS/JavaScript (No frameworks!)

๐Ÿ“ž Support

For issues or questions:

  1. Check browser console for errors
  2. Verify backend is running
  3. Check network requests in DevTools
  4. Ensure all files are properly uploaded

Made with ๐Ÿ’š for the cybersecurity community

Train like elite hackers. Master cybersecurity. Join the revolution.

๐Ÿ”’ STAY SECURE. STAY ELITE. ๐Ÿ”’

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors