# boomenjoyer/mintloader architecture

> Architecture diagram of the GitHub repository boomenjoyer/mintloader, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/boomenjoyer/mintloader
- Repository: https://github.com/boomenjoyer/mintloader

## Overview

##### Main Components Identification

a) Panel (Admin Interface)
- Located in the /panel directory
- Handles the web-based control interface
- Contains controllers for bots, builds, login, settings, and tasks
- Uses Handlebars (.hbs) for view templating

b) API Layer
- Located in the /api directory
- Manages communication between bots and server
- Handles tasks, reporting, and ping functionality

c) Client (Bot)
- Located in the /client directory
- Represents the malware that runs on target Windows systems
- Contains utilities for core functionality, cryptography, and task execution

d) Database
- Located in the /database directory
- Contains models for bots and users
- Handles data persistence

**[Admin Browser] → [Panel (Web Interface)]**
- ↓
**[Bot Clients] → [API Layer] ↔ [Database]**

##### Component Details

For each major component, include these specific elements:

Panel Component:
- Controllers: Login, Bots, Builds, Tasks, Settings
- Views (HBS templates)
- Public assets (CSS, Images)
- Authentication system

API Layer:
- Route handlers (ping, report, tasks)
- Controllers
- Caching system
- Crypto utilities

Client Component:
- Core utilities
- Persistence mechanism
- Task execution
- UAC handling
- Crypto functions

Database Component:
- Bot model
- User model
- Database connections

##### Flow Representation

- HTTP communication between components
- Data flow direction
- Authentication paths
- Task distribution flow

##### Additional Elements

Important aspects:
- Security layers (authentication, encryption)
- Configuration management
- Build system integration
- Persistence mechanisms
- Task execution flow

##### Technical Details

Annotations for:
- Node.js runtime
- HTTP communication protocol
- Database type
- Authentication mechanism
- Obfuscation system

##### Notes for Implementation Details

Notes about:
- Windows OS compatibility
- Required dependencies (Python, Visual Studio)
- Build process
- Deployment requirements

Remember to indicate the HTTP-based communication protocol, as it's highlighted as a key stability feature in the README. Also emphasize the security aspects like obfuscation and persistence methods, which are core features of the system.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Admin Layer"
        Browser["Admin Browser"]
        Panel["Admin Panel"]:::panel
        Controllers["Controllers"]:::panel
        Views["Views (HBS)"]:::panel
        Assets["Public Assets"]:::panel
        Auth["Authentication"]:::panel
        Obfuscator["Obfuscator"]:::panel
    end

    subgraph "API Layer"
        API["API Server"]:::api
        Cache["Cache System"]:::api
        Routes["Routes"]:::api
        APIControllers["API Controllers"]:::api
        APICrypto["Cryptography"]:::api
    end

    subgraph "Client Layer"
        Client["Bot Client"]:::client
        Core["Core Utils"]:::client
        ClientCrypto["Crypto Utils"]:::client
        Persistence["Persistence"]:::client
        TaskExec["Task Execution"]:::client
        UAC["UAC Handler"]:::client
        Ping["Ping System"]:::client
        Report["Reporting"]:::client
    end

    subgraph "Database Layer"
        DB["Database"]:::db
        BotModel["Bot Model"]:::db
        UserModel["User Model"]:::db
    end

    subgraph "Core Application"
        App["Main App"]:::core
        Config["Configuration"]:::core
    end

    %% Connections
    Browser --> Panel
    Panel --> Controllers
    Controllers --> Views
    Controllers --> Assets
    Controllers --> Auth
    Controllers --> Obfuscator

    API --> Cache
    API --> Routes
    API --> APIControllers
    API --> APICrypto

    Client --> Core
    Client --> ClientCrypto
    Client --> Persistence
    Client --> TaskExec
    Client --> UAC
    Client --> Ping
    Client --> Report

    DB --> BotModel
    DB --> UserModel

    %% Cross-layer connections
    Panel --> API
    API --> DB
    Client --> API

    %% Component click events
    click Panel "https://github.com/BoomEnjoyer/MintLoader/blob/main/panel/panel.js"
    click Controllers "https://github.com/BoomEnjoyer/MintLoader/tree/main/panel/controllers"
    click Views "https://github.com/BoomEnjoyer/MintLoader/tree/main/panel/views"
    click Assets "https://github.com/BoomEnjoyer/MintLoader/tree/main/panel/public"
    click Auth "https://github.com/BoomEnjoyer/MintLoader/blob/main/panel/controllers/loginController.js"
    click Obfuscator "https://github.com/BoomEnjoyer/MintLoader/blob/main/panel/obfuscator.js"
    
    click API "https://github.com/BoomEnjoyer/MintLoader/blob/main/api/api.js"
    click Cache "https://github.com/BoomEnjoyer/MintLoader/blob/main/api/cache.js"
    click Routes "https://github.com/BoomEnjoyer/MintLoader/tree/main/api/routes"
    click APIControllers "https://github.com/BoomEnjoyer/MintLoader/tree/main/api/controller"
    click APICrypto "https://github.com/BoomEnjoyer/MintLoader/blob/main/api/crypto.js"
    
    click Client "https://github.com/BoomEnjoyer/MintLoader/blob/main/client/client.js"
    click Core "https://github.com/BoomEnjoyer/MintLoader/blob/main/client/utils/core.js"
    click ClientCrypto "https://github.com/BoomEnjoyer/MintLoader/blob/main/client/utils/crypto.js"
    click Persistence "https://github.com/BoomEnjoyer/MintLoader/blob/main/client/utils/persistence.js"
    click TaskExec "https://github.com/BoomEnjoyer/MintLoader/blob/main/client/utils/tasks.js"
    click UAC "https://github.com/BoomEnjoyer/MintLoader/blob/main/client/utils/uac.js"
    click Ping "https://github.com/BoomEnjoyer/MintLoader/blob/main/client/utils/ping.js"
    click Report "https://github.com/BoomEnjoyer/MintLoader/blob/main/client/utils/report.js"
    
    click DB "https://github.com/BoomEnjoyer/MintLoader/blob/main/database/database.js"
    click BotModel "https://github.com/BoomEnjoyer/MintLoader/blob/main/database/models/bot.js"
    click UserModel "https://github.com/BoomEnjoyer/MintLoader/blob/main/database/models/user.js"
    
    click App "https://github.com/BoomEnjoyer/MintLoader/blob/main/app.js"
    click Config "https://github.com/BoomEnjoyer/MintLoader/blob/main/config_example.js"

    %% Styles
    classDef panel fill:#2374ab,stroke:#000,color:#fff
    classDef api fill:#39a0ed,stroke:#000,color:#fff
    classDef client fill:#ff6b6b,stroke:#000,color:#fff
    classDef db fill:#4ecdc4,stroke:#000,color:#fff
    classDef core fill:#95a5a6,stroke:#000,color:#fff

    %% Legend
    subgraph Legend
        L1["Panel Components"]:::panel
        L2["API Components"]:::api
        L3["Client Components"]:::client
        L4["Database Components"]:::db
        L5["Core Components"]:::core
    end
```
