# moom825/xeno-rat architecture

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

- Interactive diagram: https://gitdiagram.com/moom825/xeno-rat
- Repository: https://github.com/moom825/xeno-rat

## Overview

Xeno Rat is a Windows remote-access tool. The principal workflow is: an operator runs the server UI, a deployed client connects over TCP, the client dispatches plugin requests, and remote results return to server-side views or logs. The sampled code directly supports client startup/persistence, encrypted connection setup, file operations, process enumeration, registry operations, and microphone-library infrastructure. README capabilities such as HVNC, keylogging, proxying, UAC, power, and webcam remain represented, but their exact dispatch wiring was not sampled.

Main entry points: [`xeno rat server/Program.cs`](https://github.com/moom825/xeno-rat/blob/main/xeno%20rat%20server/Program.cs) (Server UI), [`xeno rat server/Forms/File manager.cs`](https://github.com/moom825/xeno-rat/blob/main/xeno%20rat%20server/Forms/File%20manager.cs) (File Manager UI), [`xeno rat client/Program.cs`](https://github.com/moom825/xeno-rat/blob/main/xeno%20rat%20client/Program.cs) (Client Runtime), [`Plugins/File manager/File manager.cs`](https://github.com/moom825/xeno-rat/blob/main/Plugins/File%20manager/File%20manager.cs) (File Plugin)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Control Plane"]
  node_server["Server UI<br/>[Program.cs]"]
  node_client["Client Runtime<br/>[Program.cs]"]
  node_dispatch["Plugin Dispatch<br/>[Program.cs]"]
end

subgraph group_remote["Remote Operations"]
  node_file_ui["File Manager UI<br/>[File manager.cs]"]
  node_file_plugin["File Plugin<br/>[File manager.cs]"]
  node_filesystem[("Remote Filesystem")]
  node_chat["Chat Channel<br/>[Chat.cs]"]
  node_fun["Fun Controls<br/>[Fun.cs]"]
end

subgraph group_surveillance["Surveillance"]
  node_hvnc["Hidden VNC<br/>[Hvnc.cs]"]
  node_keylog["Key Logging<br/>[keyLogger.cs]"]
  node_offline_keylog["Offline Keylog"]
  node_microphone["Live Microphone<br/>[LiveMicrophone.cs]"]
end

subgraph group_system["System Access"]
  node_process["Process Manager<br/>[ProcessManager.cs]"]
  node_registry["Registry Manager"]
  node_infograb["Info Grabber<br/>[InfoGrab.cs]"]
  node_sqlite[("Browser SQLite")]
  node_proxy["Reverse Proxy"]
  node_uac["UAC Controls<br/>[Process Handler.cs]"]
end

subgraph group_media["Media Layer"]
  node_media_lib["Audio Foundation<br/>[NAudio.Core]"]
end

node_operator(("Operator"))
node_audio_device(("Windows Audio"))

node_operator -->|"uses"| node_server
node_client -->|"connects"| node_server
node_client -->|"dispatches"| node_dispatch
node_server -->|"opens"| node_file_ui
node_file_ui -->|"requests"| node_file_plugin
node_file_plugin -->|"reads/writes"| node_filesystem
node_file_ui -->|"receives"| node_filesystem
node_infograb -->|"reads"| node_sqlite
node_microphone -->|"uses"| node_media_lib
node_media_lib -->|"captures"| node_audio_device
node_server -.->|"controls"| node_hvnc
node_server -.->|"controls"| node_keylog
node_server -.->|"controls"| node_offline_keylog
node_server -.->|"controls"| node_process
node_server -.->|"controls"| node_registry
node_server -.->|"controls"| node_infograb
node_server -.->|"controls"| node_microphone
node_server -.->|"controls"| node_chat
node_server -.->|"controls"| node_fun
node_server -.->|"controls"| node_proxy
node_server -.->|"controls"| node_uac

click node_server "https://github.com/moom825/xeno-rat/blob/main/xeno%20rat%20server/Program.cs"
click node_client "https://github.com/moom825/xeno-rat/blob/main/xeno%20rat%20client/Program.cs"
click node_dispatch "https://github.com/moom825/xeno-rat/blob/main/xeno%20rat%20client/Program.cs"
click node_file_ui "https://github.com/moom825/xeno-rat/blob/main/xeno%20rat%20server/Forms/File%20manager.cs"
click node_file_plugin "https://github.com/moom825/xeno-rat/blob/main/Plugins/File%20manager/File%20manager.cs"
click node_process "https://github.com/moom825/xeno-rat/blob/main/Plugins/ProcessManager/ProcessManager.cs"
click node_registry "https://github.com/moom825/xeno-rat/blob/main/Plugins/Registry%20Manager/Registry%20Manager.cs"
click node_infograb "https://github.com/moom825/xeno-rat/blob/main/Plugins/PassGrab/InfoGrab.cs"
click node_hvnc "https://github.com/moom825/xeno-rat/blob/main/Plugins/Hvnc/Hvnc.cs"
click node_keylog "https://github.com/moom825/xeno-rat/blob/main/Plugins/KeyLogger/keyLogger.cs"
click node_offline_keylog "https://github.com/moom825/xeno-rat/blob/main/Plugins/KeyLoggerOffline/KeyLoggerOffline.cs"
click node_microphone "https://github.com/moom825/xeno-rat/blob/main/Plugins/LiveMicrophone/LiveMicrophone.cs"
click node_chat "https://github.com/moom825/xeno-rat/blob/main/Plugins/Chat/Chat.cs"
click node_fun "https://github.com/moom825/xeno-rat/blob/main/Plugins/Fun/Fun.cs"
click node_proxy "https://github.com/moom825/xeno-rat/tree/main/Plugins"
click node_uac "https://github.com/moom825/xeno-rat/blob/main/Plugins/Hvnc/Process%20Handler.cs"
click node_media_lib "https://github.com/moom825/xeno-rat/tree/main/Plugins/LiveMicrophone/lib/NAudio.Core"

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_server,node_client,node_dispatch toneBlue
class node_file_ui,node_file_plugin,node_filesystem,node_chat,node_fun toneAmber
class node_hvnc,node_keylog,node_offline_keylog,node_microphone toneMint
class node_process,node_registry,node_infograb,node_sqlite,node_proxy,node_uac toneRose
class node_media_lib,node_operator,node_audio_device toneIndigo
```

## Components

### Control Plane

- [Server UI](https://github.com/moom825/xeno-rat/blob/main/xeno%20rat%20server/Program.cs): `xeno rat server/Program.cs`
- [Client Runtime](https://github.com/moom825/xeno-rat/blob/main/xeno%20rat%20client/Program.cs): `xeno rat client/Program.cs`
- [Plugin Dispatch](https://github.com/moom825/xeno-rat/blob/main/xeno%20rat%20client/Program.cs): `xeno rat client/Program.cs`

### Remote Operations

- [File Manager UI](https://github.com/moom825/xeno-rat/blob/main/xeno%20rat%20server/Forms/File%20manager.cs): `xeno rat server/Forms/File manager.cs`
- [File Plugin](https://github.com/moom825/xeno-rat/blob/main/Plugins/File%20manager/File%20manager.cs): `Plugins/File manager/File manager.cs`
- **Remote Filesystem**
- [Chat Channel](https://github.com/moom825/xeno-rat/blob/main/Plugins/Chat/Chat.cs): `Plugins/Chat/Chat.cs`
- [Fun Controls](https://github.com/moom825/xeno-rat/blob/main/Plugins/Fun/Fun.cs): `Plugins/Fun/Fun.cs`

### Surveillance

- [Hidden VNC](https://github.com/moom825/xeno-rat/blob/main/Plugins/Hvnc/Hvnc.cs): `Plugins/Hvnc/Hvnc.cs`
- [Key Logging](https://github.com/moom825/xeno-rat/blob/main/Plugins/KeyLogger/keyLogger.cs): `Plugins/KeyLogger/keyLogger.cs`
- [Offline Keylog](https://github.com/moom825/xeno-rat/blob/main/Plugins/KeyLoggerOffline/KeyLoggerOffline.cs): `Plugins/KeyLoggerOffline/KeyLoggerOffline.cs`
- [Live Microphone](https://github.com/moom825/xeno-rat/blob/main/Plugins/LiveMicrophone/LiveMicrophone.cs): `Plugins/LiveMicrophone/LiveMicrophone.cs`

### System Access

- [Process Manager](https://github.com/moom825/xeno-rat/blob/main/Plugins/ProcessManager/ProcessManager.cs): `Plugins/ProcessManager/ProcessManager.cs`
- [Registry Manager](https://github.com/moom825/xeno-rat/blob/main/Plugins/Registry%20Manager/Registry%20Manager.cs): `Plugins/Registry Manager/Registry Manager.cs`
- [Info Grabber](https://github.com/moom825/xeno-rat/blob/main/Plugins/PassGrab/InfoGrab.cs): `Plugins/PassGrab/InfoGrab.cs`
- **Browser SQLite**
- [Reverse Proxy](https://github.com/moom825/xeno-rat/tree/main/Plugins): `Plugins`
- [UAC Controls](https://github.com/moom825/xeno-rat/blob/main/Plugins/Hvnc/Process%20Handler.cs): `Plugins/Hvnc/Process Handler.cs`

### Media Layer

- [Audio Foundation](https://github.com/moom825/xeno-rat/tree/main/Plugins/LiveMicrophone/lib/NAudio.Core): `Plugins/LiveMicrophone/lib/NAudio.Core`

### Other components

- **Operator**
- **Windows Audio**

## Connections

- Operator → Server UI: uses
- Client Runtime → Server UI: connects
- Client Runtime → Plugin Dispatch: dispatches
- Server UI → File Manager UI: opens
- File Manager UI → File Plugin: requests
- File Plugin → Remote Filesystem: reads/writes
- File Manager UI → Remote Filesystem: receives
- Info Grabber → Browser SQLite: reads
- Live Microphone → Audio Foundation: uses
- Audio Foundation → Windows Audio: captures
- Server UI → Hidden VNC: controls
- Server UI → Key Logging: controls
- Server UI → Offline Keylog: controls
- Server UI → Process Manager: controls
- Server UI → Registry Manager: controls
- Server UI → Info Grabber: controls
- Server UI → Live Microphone: controls
- Server UI → Chat Channel: controls
- Server UI → Fun Controls: controls
- Server UI → Reverse Proxy: controls
- Server UI → UAC Controls: controls
