# doge-1satellite/ttt2 architecture

> Architecture diagram of the GitHub repository doge-1satellite/ttt2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-08-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/doge-1satellite/ttt2
- Repository: https://github.com/doge-1satellite/ttt2

## Overview

##### Project type and purpose
- This is a classic “remote administration” system consisting of:
- A Windows‐based Client GUI application (“Client/…”)
- A multi‐threaded Server daemon (“Server/…”)
- Installer modules (“Install/…”)
- Plugin subsystems (Video capture, ShellCode loader, etc.)
- Low‐level kernel drivers for extended privileges (“Server/driver/…”).
- The README is minimal, but the presence of Client/Server code, IOCP, Socket layers, shell‐code loaders and drivers shows it’s a remote control tool.

##### File structure
- Top‐level components:
- Bin/: final packaged executables, skins, plugin HTML scripts
- Client/: GUI front‐end (MFC dialogs, views, resource files)
- Server/: headless service, common libraries, driver source
- Install/: installer project that deploys the server component
- PluginVideo/, ShellCode/, Plugin shells: separate dynamic modules
- common/, Dllcomment/, libcef/: shared code (zlib, cJSON, video codecs)
- Build artifacts in each project’s Debug/Release subfolders.
- Kernel drivers under Server/driver/x32 and x64.
- HTML/JS assets under Bin/Plugins/*.html and Client/res/Html/.

##### README for additional insights
- Dependencies (zlib, xvid, cJSON, MSXML) appear in multiple common folders.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Client Layer
    subgraph "Client (User-Mode)" 
        direction TB
        ClientUI["Client UI\n(MFC Dialogs, Views)"]:::usermode
        ClientBusiness["Business Logic\n(Chat, FileManager,\nScreenSpy, etc.)"]:::usermode
        ClientNetwork["Communication Layer\n(IOCPClient, Blocksock)"]:::usermode
    end
    click ClientUI "https://github.com/doge-1satellite/ttt2/tree/main/Client/"
    
    %% Server Layer
    subgraph "Server (User-Mode)"
        direction TB
        ServerNetwork["Network Listener\n(IOCPServer, Buffer)"]:::usermode
        ServerCore["Server Core\n(Command Dispatchers:\nScreenManager,\nFileManager,\nQQInfoManager)"]:::usermode
        DriverInterface["Kernel Driver Interface"]:::driver
    end
    click ServerInterface "https://github.com/doge-1satellite/ttt2/tree/main/Server/driver/"
    
    %% Installer
    Installer["Installer Module\n(Service Registration,\nDriver Deployment)"]:::usermode
    click Installer "https://github.com/doge-1satellite/ttt2/tree/main/Install/"
    
    %% Plugins
    subgraph "Plugins (User-Mode)"
        direction TB
        PluginVideo["Plugin: Video Capture"]:::plugin
        PluginShell["Plugin: ShellCode Execution"]:::plugin
    end
    click PluginVideo "https://github.com/doge-1satellite/ttt2/tree/main/PluginVideo/"
    click PluginShell "https://github.com/doge-1satellite/ttt2/tree/main/ShellCode/"
    
    %% Shared Libraries
    subgraph "Shared Libraries"
        direction TB
        CommonLibs["Common Libs\n(cJSON, zlib,\nXvid, JPEG SDK)"]:::shared
        Dllwrap["Dllcomment"]:::shared
        Cefwrap["libcef"]:::shared
    end
    click CommonLibs "https://github.com/doge-1satellite/ttt2/tree/main/common/"
    click Dllwrap "https://github.com/doge-1satellite/ttt2/tree/main/Dllcomment/"
    click Cefwrap "https://github.com/doge-1satellite/ttt2/tree/main/libcef/"
    
    %% Bin Output
    BinAssets["Bin Output\n(Executables, Skins,\nPlugin HTML/JS)"]:::shared
    click BinAssets "https://github.com/doge-1satellite/ttt2/tree/main/Bin/"
    
    %% Connections
    ClientUI --> ClientBusiness
    ClientBusiness --> ClientNetwork
    ClientNetwork --> ServerNetwork
    ServerNetwork --> ServerCore
    ServerCore --> DriverInterface
    
    ClientBusiness --> PluginVideo
    ClientBusiness --> PluginShell
    
    Installer --> ServerCore
    Installer --> DriverInterface
    
    CommonLibs --> ClientUI
    CommonLibs --> ServerCore
    CommonLibs --> PluginVideo
    CommonLibs --> PluginShell
    
    Dllwrap --> ClientNetwork
    Dllwrap --> ServerNetwork
    
    Cefwrap --> ClientUI
    
    ClientUI --> BinAssets
    ServerCore --> BinAssets
    PluginVideo --> BinAssets
    PluginShell --> BinAssets
    
    %% Styles
    classDef usermode fill:#ADD8E6,stroke:#000,stroke-width:1px
    classDef plugin fill:#98FB98,stroke:#000,stroke-width:1px
    classDef shared fill:#D3D3D3,stroke:#000,stroke-width:1px
    classDef driver fill:#FFA500,stroke:#000,stroke-width:1px
```
