# logkiss/rat-winos4.0-gh0st architecture

> Architecture diagram of the GitHub repository logkiss/rat-winos4.0-gh0st, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/logkiss/rat-winos4.0-gh0st
- Repository: https://github.com/logkiss/rat-winos4.0-gh0st

## Overview

This repository is an archive of multiple Windows remote-administration tool variants, not one clearly integrated application. The tree shows operator-facing clients, server-side components, feature plugins, shared networking/media code, and loader-related code. A plausible user workflow is selecting a connected host in a client and requesting an operation, but the excerpts do not establish the runtime dispatch path or how these variants relate. The map therefore shows source areas, not asserted call flow; several components are identified from filenames and the tree only.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["Operator clients"]
  node_ghost_client["GHOST client<br/>[Start.cpp]"]
  node_world_client["worldgh0st client<br/>[Client.cpp]"]
  node_machine_client["机器猫 client UI<br/>[ServiceDlg.cpp]"]
  node_cool_controls["Custom controls"]
end

subgraph group_agents["Server components"]
  node_server_core["HP server core<br/>[KernelManager.cpp]"]
  node_world_server["worldgh0st server core<br/>[KernelManager.cpp]"]
  node_socket_layer["Client socket<br/>[ClientSocket.h]"]
  node_manager_base["Plugin manager base<br/>[Manager.h]"]
end

subgraph group_features["Feature modules"]
  node_file_ops["File operations<br/>[FileManager.cpp]"]
  node_system_ops["System operations<br/>[SystemManager.cpp]"]
  node_registry_ops["Registry operations<br/>[RegManager.cpp]"]
  node_screen_ops["Screen capture<br/>[ScreenManager.cpp]"]
  node_keyboard_ops["Keyboard monitoring"]
  node_shell_ops["Shell interface<br/>[ShellManager.cpp]"]
  node_audio_ops["Audio capture<br/>[AudioManager.cpp]"]
  node_video_ops["Video capture<br/>[VideoManager.cpp]"]
end

subgraph group_shared["Shared libraries"]
  node_shared_buffer["Buffer utilities<br/>[until.h]"]
  node_codec["Media codecs<br/>[XvidEnc.cpp]"]
end

subgraph group_loaders["Loader components"]
  node_memory_loader["Memory loader<br/>[MemoryModule.c]"]
  node_shellcode_loader["Shellcode loader<br/>[load.c]"]
end

node_operator(("Operator"))

click node_ghost_client "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/GHOST/Client/Start.cpp"
click node_world_client "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/worldgh0st/Client/Client.cpp"
click node_machine_client "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E6%9C%BA%E5%99%A8%E7%8C%AB/Client/ServiceDlg.cpp"
click node_server_core "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/1.0%E8%BF%9C%E6%8E%A7%E6%94%B9HP%2BICOP/HP_Server/Contain/KernelManager.cpp"
click node_world_server "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/worldgh0st/Server/KernelManager.cpp"
click node_socket_layer "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E6%9C%BA%E5%99%A8%E7%8C%AB/DLL/Pluginss/ClientSocket.h"
click node_manager_base "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E6%9C%BA%E5%99%A8%E7%8C%AB/DLL/Pluginss/Manager.h"
click node_file_ops "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/worldgh0st/Server/Plugins/FileManager.cpp"
click node_system_ops "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/worldgh0st/Server/Plugins/SystemManager.cpp"
click node_registry_ops "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/worldgh0st/Server/Plugins/RegManager.cpp"
click node_screen_ops "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/worldgh0st/Server/Plugins/ScreenManager.cpp"
click node_keyboard_ops "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E6%9C%BA%E5%99%A8%E7%8C%AB/DLL/Pluginss/KEYLOG/KeyboardManager.cpp"
click node_shell_ops "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E6%9C%BA%E5%99%A8%E7%8C%AB/DLL/Pluginss/SHELL/ShellManager.cpp"
click node_audio_ops "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/1.0%E8%BF%9C%E6%8E%A7%E6%94%B9HP%2BICOP/HP_Server/Audio/AudioManager.cpp"
click node_video_ops "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/1.0%E8%BF%9C%E6%8E%A7%E6%94%B9HP%2BICOP/HP_Server/Video/VideoManager.cpp"
click node_shared_buffer "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E6%9C%BA%E5%99%A8%E7%8C%AB/DLL/Pluginss/until.h"
click node_codec "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/1.0%E8%BF%9C%E6%8E%A7%E6%94%B9HP%2BICOP/HP_Server/SCREEN/xvidsdk/XvidEnc.cpp"
click node_memory_loader "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/1.0%E8%BF%9C%E6%8E%A7%E6%94%B9HP%2BICOP/HP%20Loder/MemoryModule.c"
click node_shellcode_loader "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/NBCLASS/load/load/load.c"
click node_cool_controls "https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E5%A4%A7%E7%81%B0%E7%8B%BC9.5/%E5%A4%A7%E7%81%B0%E7%8B%BC%E6%BA%90%E7%A0%81/NewServer/CoolControlsManager.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ghost_client,node_world_client,node_machine_client,node_cool_controls toneBlue
class node_server_core,node_world_server,node_socket_layer,node_manager_base toneAmber
class node_file_ops,node_system_ops,node_registry_ops,node_screen_ops,node_keyboard_ops,node_shell_ops,node_audio_ops,node_video_ops toneMint
class node_shared_buffer,node_codec toneRose
class node_memory_loader,node_shellcode_loader,node_operator toneIndigo
```

## Components

### Operator clients

- [GHOST client](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/GHOST/Client/Start.cpp): `GHOST/Client/Start.cpp`
- [worldgh0st client](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/worldgh0st/Client/Client.cpp): `worldgh0st/Client/Client.cpp`
- [机器猫 client UI](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E6%9C%BA%E5%99%A8%E7%8C%AB/Client/ServiceDlg.cpp): `机器猫/Client/ServiceDlg.cpp`
- [Custom controls](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E5%A4%A7%E7%81%B0%E7%8B%BC9.5/%E5%A4%A7%E7%81%B0%E7%8B%BC%E6%BA%90%E7%A0%81/NewServer/CoolControlsManager.cpp): `大灰狼9.5/大灰狼源码/NewServer/CoolControlsManager.cpp`

### Server components

- [HP server core](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/1.0%E8%BF%9C%E6%8E%A7%E6%94%B9HP%2BICOP/HP_Server/Contain/KernelManager.cpp): `1.0远控改HP+ICOP/HP_Server/Contain/KernelManager.cpp`
- [worldgh0st server core](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/worldgh0st/Server/KernelManager.cpp): `worldgh0st/Server/KernelManager.cpp`
- [Client socket](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E6%9C%BA%E5%99%A8%E7%8C%AB/DLL/Pluginss/ClientSocket.h): `机器猫/DLL/Pluginss/ClientSocket.h`
- [Plugin manager base](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E6%9C%BA%E5%99%A8%E7%8C%AB/DLL/Pluginss/Manager.h): `机器猫/DLL/Pluginss/Manager.h`

### Feature modules

- [File operations](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/worldgh0st/Server/Plugins/FileManager.cpp): `worldgh0st/Server/Plugins/FileManager.cpp`
- [System operations](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/worldgh0st/Server/Plugins/SystemManager.cpp): `worldgh0st/Server/Plugins/SystemManager.cpp`
- [Registry operations](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/worldgh0st/Server/Plugins/RegManager.cpp): `worldgh0st/Server/Plugins/RegManager.cpp`
- [Screen capture](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/worldgh0st/Server/Plugins/ScreenManager.cpp): `worldgh0st/Server/Plugins/ScreenManager.cpp`
- [Keyboard monitoring](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E6%9C%BA%E5%99%A8%E7%8C%AB/DLL/Pluginss/KEYLOG/KeyboardManager.cpp): `机器猫/DLL/Pluginss/KEYLOG/KeyboardManager.cpp`
- [Shell interface](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E6%9C%BA%E5%99%A8%E7%8C%AB/DLL/Pluginss/SHELL/ShellManager.cpp): `机器猫/DLL/Pluginss/SHELL/ShellManager.cpp`
- [Audio capture](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/1.0%E8%BF%9C%E6%8E%A7%E6%94%B9HP%2BICOP/HP_Server/Audio/AudioManager.cpp): `1.0远控改HP+ICOP/HP_Server/Audio/AudioManager.cpp`
- [Video capture](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/1.0%E8%BF%9C%E6%8E%A7%E6%94%B9HP%2BICOP/HP_Server/Video/VideoManager.cpp): `1.0远控改HP+ICOP/HP_Server/Video/VideoManager.cpp`

### Shared libraries

- [Buffer utilities](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/%E6%9C%BA%E5%99%A8%E7%8C%AB/DLL/Pluginss/until.h): `机器猫/DLL/Pluginss/until.h`
- [Media codecs](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/1.0%E8%BF%9C%E6%8E%A7%E6%94%B9HP%2BICOP/HP_Server/SCREEN/xvidsdk/XvidEnc.cpp): `1.0远控改HP+ICOP/HP_Server/SCREEN/xvidsdk/XvidEnc.cpp`

### Loader components

- [Memory loader](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/1.0%E8%BF%9C%E6%8E%A7%E6%94%B9HP%2BICOP/HP%20Loder/MemoryModule.c): `1.0远控改HP+ICOP/HP Loder/MemoryModule.c`
- [Shellcode loader](https://github.com/logkiss/rat-winos4.0-gh0st/blob/master/NBCLASS/load/load/load.c): `NBCLASS/load/load/load.c`

### Other components

- **Operator**
