Skip to content

norobb/ratv2

Repository files navigation

RAT Control Panel v2.0

RAT Control Panel Logo

Version License Python React Docker

πŸš€ Overview

RAT Control Panel v2.0 is a modern, secure Remote Administration Tool designed for authorized system administration and educational purposes. Built with enterprise-grade security features and a user-friendly interface.

⚠️ IMPORTANT DISCLAIMER

This software is intended ONLY for:

  • Authorized system administration
  • Educational and research purposes
  • Penetration testing with explicit permission
  • Security research in controlled environments

Users are solely responsible for ensuring compliance with all applicable laws and regulations.

✨ Features

πŸ”’ Enterprise Security

  • JWT Authentication - Secure token-based authentication
  • AES-256-GCM Encryption - End-to-end encryption for all communications
  • RSA Key Exchange - Secure session establishment
  • Rate Limiting - DDoS protection and abuse prevention
  • Input Validation - Comprehensive data sanitization
  • Audit Logging - Complete activity tracking

πŸ—οΈ Modern Architecture

  • Microservices Design - Scalable and maintainable architecture
  • React Frontend - Modern, responsive web interface
  • FastAPI Backend - High-performance async API server
  • WebSocket Communication - Real-time bidirectional communication
  • Docker Support - Containerized deployment
  • Plugin System - Extensible module architecture

πŸ“Š Advanced Features

  • Real-time Dashboard - Live monitoring and control
  • Multi-tenancy - Support for multiple organizations
  • File Management - Secure file transfer and management
  • Remote Shell - Secure command execution
  • System Monitoring - Comprehensive system information
  • Screenshot Capture - Remote desktop monitoring
  • Keylogger - Keystroke monitoring (authorized use only)
  • Webcam/Audio - Remote media capture
  • Process Management - Remote process control

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   React Web     β”‚    β”‚   FastAPI       β”‚    β”‚   Client        β”‚
β”‚   Frontend      │◄──►│   Server        │◄──►│   Application   β”‚
β”‚   (Port 3000)   β”‚    β”‚   (Port 8000)   β”‚    β”‚                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚                       β”‚                       β”‚
         β”‚              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”              β”‚
         └─────────────►│   PostgreSQL    β”‚β—„β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                        β”‚   Database      β”‚
                        β”‚   (Port 5432)   β”‚
                        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                        β”‚     Redis       β”‚
                        β”‚     Cache       β”‚
                        β”‚   (Port 6379)   β”‚
                        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start

Prerequisites

  • Docker & Docker Compose (Recommended)
  • Python 3.9+ (For manual installation)
  • Node.js 18+ (For frontend development)
  • PostgreSQL 13+ (For database)
  • Redis 6+ (For caching)

🐳 Docker Installation (Recommended)

  1. Clone the repository

    git clone https://github.com/your-repo/rat-control-panel-v2.git
    cd rat-control-panel-v2
  2. Configure environment

    cp .env.example .env
    # Edit .env with your configuration
  3. Start services

    docker-compose up -d
  4. Access the application

πŸ”§ Manual Installation

Server Setup

  1. Install server dependencies

    cd server
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    pip install -r requirements.txt
  2. Configure database

    # Create PostgreSQL database
    createdb rat_control_panel
    
    # Run migrations
    alembic upgrade head
  3. Start server

    uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload

Frontend Setup

  1. Install frontend dependencies

    cd frontend
    npm install
  2. Start development server

    npm start

Client Setup

  1. Install client dependencies

    cd client
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    pip install -r requirements.txt
  2. Configure client

    cp config/client.json.example config/client.json
    # Edit configuration as needed
  3. Start client

    python main.py

πŸ“– Documentation

πŸ“š User Guides

πŸ”§ Technical Documentation

πŸš€ Deployment Guides

πŸ”’ Security

Security Features

  • End-to-end encryption using AES-256-GCM
  • RSA key exchange for secure session establishment
  • JWT authentication with configurable expiration
  • Rate limiting to prevent abuse
  • Input validation and sanitization
  • Secure headers and CORS configuration
  • Audit logging for all activities

Security Best Practices

  • Change default passwords immediately
  • Use strong encryption keys
  • Enable HTTPS in production
  • Regularly update dependencies
  • Monitor audit logs
  • Implement network segmentation
  • Use firewall rules

Compliance

  • Follows OWASP security guidelines
  • Implements zero-trust architecture
  • Supports compliance auditing
  • Regular security assessments

πŸ› οΈ Development

Development Setup

  1. Clone repository

    git clone https://github.com/your-repo/rat-control-panel-v2.git
    cd rat-control-panel-v2
  2. Install development dependencies

    pip install -r requirements-dev.txt
  3. Setup pre-commit hooks

    pre-commit install
  4. Run tests

    make test

Available Commands

make install    # Install all dependencies
make build      # Build all containers
make start      # Start all services
make stop       # Stop all services
make test       # Run all tests
make lint       # Run linting
make format     # Format code
make clean      # Clean up containers and volumes

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new functionality
  5. Ensure all tests pass
  6. Submit a pull request

πŸ“Š Monitoring

Built-in Monitoring

  • Prometheus metrics collection
  • Grafana dashboards
  • Health checks for all services
  • Performance monitoring
  • Error tracking
  • Audit logging

Metrics Collected

  • Client connection status
  • Command execution statistics
  • System resource usage
  • API response times
  • Error rates
  • Security events

πŸ”§ Configuration

Environment Variables

Variable Description Default
DATABASE_URL PostgreSQL connection string Required
REDIS_URL Redis connection string Required
JWT_SECRET JWT signing secret Required
ENCRYPTION_KEY AES encryption key Required
SERVER_HOST Server bind address 0.0.0.0
SERVER_PORT Server port 8000
DEBUG Enable debug mode false
LOG_LEVEL Logging level INFO

Configuration Files

  • server/config/ - Server configuration
  • client/config/ - Client configuration
  • frontend/.env - Frontend environment
  • docker-compose.yml - Docker services

🚨 Troubleshooting

Common Issues

Connection Issues

  • Check firewall settings
  • Verify network connectivity
  • Ensure correct ports are open

Authentication Errors

  • Verify JWT secret configuration
  • Check token expiration
  • Ensure correct credentials

Performance Issues

  • Monitor system resources
  • Check database performance
  • Review log files

Getting Help

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

⚠️ Legal Notice

This software is provided for educational and authorized administrative purposes only. Users must:

  • Obtain explicit permission before using on any system
  • Comply with all applicable laws and regulations
  • Use only for legitimate security testing or administration
  • Respect privacy and data protection laws
  • Not use for malicious purposes

The developers are not responsible for any misuse of this software.

🀝 Acknowledgments

πŸ“ž Support

For support and questions:


RAT Control Panel v2.0
Built with ❀️ for security professionals and educators

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published