# chainski/xenorat architecture

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

- Interactive diagram: https://gitdiagram.com/chainski/xenorat
- Repository: https://github.com/chainski/xenorat

## Overview

Xeno Rat is a Windows remote-access application with a server UI and a client that connects back to it and loads feature plugins. The broad workflow is operator use of the server, client connection and dispatch, then feature-specific handling; the client-to-handler and plugin-loading links are visible in excerpts. The README documents additional capability areas, but their runtime routing was not sampled, so those are shown as separate feature branches rather than an asserted execution pipeline. This is a structural overview, not an assessment of safe use.

Main entry points: [`xeno rat server/MainForm.cs`](https://github.com/chainski/xenorat/blob/main/xeno%20rat%20server/MainForm.cs) (Server UI), [`xeno rat client/Program.cs`](https://github.com/chainski/xenorat/blob/main/xeno%20rat%20client/Program.cs) (Client startup), [`xeno rat client/Handler.cs`](https://github.com/chainski/xenorat/blob/main/xeno%20rat%20client/Handler.cs) (Client dispatcher), [`Plugins/WebCam/WebCam.cs`](https://github.com/chainski/xenorat/blob/main/Plugins/WebCam/WebCam.cs) (Webcam capture)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Control applications"]
  node_server["Server UI<br/>[MainForm.cs]"]
  node_serverentry["Server entry<br/>[Program.cs]"]
  node_cliententry["Client startup<br/>[Program.cs]"]
  node_clienthandler["Client dispatcher<br/>[Handler.cs]"]
  node_dll["Plugin loader<br/>[DllHandler.cs]"]
  node_clienttransport["Client transport<br/>[SocketHandler.cs]"]
  node_servertransport["Server transport<br/>[SocketHandler.cs]"]
end

subgraph group_plugins["Remote features"]
  node_chat["Chat<br/>[Chat.cs]"]
  node_hvnc["Hidden desktop<br/>[Process Handler.cs]"]
  node_keylog["Key logging<br/>[keyLogger.cs]"]
  node_offlinekey["Offline key logging"]
  node_file["File management<br/>[File manager.cs]"]
  node_process["Process management<br/>[ProcessManager.cs]"]
  node_registry["Registry management"]
  node_shell["Shell<br/>[Shell.cs]"]
  node_proxy["Reverse proxy<br/>[ReverseProxy.cs]"]
  node_passgrab["Credential collection<br/>[InfoGrab.cs]"]
  node_startup["Startup management<br/>[Startup.cs]"]
  node_uac["Privilege handling<br/>[uacbypass.cs]"]
end

subgraph group_capture["Capture libraries"]
  node_webcam["Webcam capture<br/>[WebCam.cs]"]
  node_mic["Microphone<br/>[LiveMicrophone.cs]"]
  node_screen["Screen control<br/>[ScreenControl.cs]"]
  node_cameraapi["Camera capture API"]
end

subgraph group_audio["Audio support"]
  node_wave["Wave formats<br/>[WaveFormat.cs]"]
  node_wasapi["Audio device API<br/>[AudioClient.cs]"]
end

node_operator(("Operator"))

node_operator -.->|"uses"| node_server
node_serverentry -->|"starts"| node_server
node_cliententry -->|"creates and dispatches"| node_clienthandler
node_clienthandler -->|"dispatches plugin"| node_dll
node_cliententry -.->|"uses connection"| node_clienttransport
node_server -.->|"uses connection"| node_servertransport
node_server -.->|"offers feature"| node_chat
node_server -.->|"offers feature"| node_hvnc
node_server -.->|"offers feature"| node_webcam
node_server -.->|"offers feature"| node_mic
node_server -.->|"offers feature"| node_screen
node_server -.->|"offers feature"| node_keylog
node_server -.->|"offers feature"| node_offlinekey
node_server -.->|"offers feature"| node_file
node_server -.->|"offers feature"| node_process
node_server -.->|"offers feature"| node_registry
node_server -.->|"offers feature"| node_shell
node_server -.->|"offers feature"| node_proxy
node_server -.->|"offers feature"| node_passgrab
node_server -.->|"offers feature"| node_startup
node_server -.->|"offers feature"| node_uac
node_mic -.->|"uses audio API"| node_wasapi
node_wasapi -.->|"uses formats"| node_wave
node_webcam -.->|"uses capture API"| node_cameraapi

click node_server "https://github.com/chainski/xenorat/blob/main/xeno%20rat%20server/MainForm.cs"
click node_serverentry "https://github.com/chainski/xenorat/blob/main/xeno%20rat%20server/Program.cs"
click node_cliententry "https://github.com/chainski/xenorat/blob/main/xeno%20rat%20client/Program.cs"
click node_clienthandler "https://github.com/chainski/xenorat/blob/main/xeno%20rat%20client/Handler.cs"
click node_dll "https://github.com/chainski/xenorat/blob/main/xeno%20rat%20client/DllHandler.cs"
click node_clienttransport "https://github.com/chainski/xenorat/blob/main/xeno%20rat%20client/SocketHandler.cs"
click node_servertransport "https://github.com/chainski/xenorat/blob/main/xeno%20rat%20server/SocketHandler.cs"
click node_chat "https://github.com/chainski/xenorat/blob/main/Plugins/Chat/Chat.cs"
click node_hvnc "https://github.com/chainski/xenorat/blob/main/Plugins/Hvnc/Process%20Handler.cs"
click node_webcam "https://github.com/chainski/xenorat/blob/main/Plugins/WebCam/WebCam.cs"
click node_mic "https://github.com/chainski/xenorat/blob/main/Plugins/LiveMicrophone/LiveMicrophone.cs"
click node_screen "https://github.com/chainski/xenorat/blob/main/Plugins/ScreenControl/ScreenControl.cs"
click node_keylog "https://github.com/chainski/xenorat/blob/main/Plugins/KeyLogger/keyLogger.cs"
click node_offlinekey "https://github.com/chainski/xenorat/blob/main/Plugins/KeyLoggerOffline/KeyLoggerOffline.cs"
click node_file "https://github.com/chainski/xenorat/blob/main/Plugins/File%20manager/File%20manager.cs"
click node_process "https://github.com/chainski/xenorat/blob/main/Plugins/ProcessManager/ProcessManager.cs"
click node_registry "https://github.com/chainski/xenorat/blob/main/Plugins/Registry%20Manager/Registry%20Manager.cs"
click node_shell "https://github.com/chainski/xenorat/blob/main/Plugins/Shell/Shell.cs"
click node_proxy "https://github.com/chainski/xenorat/blob/main/Plugins/ReverseProxy/ReverseProxy.cs"
click node_passgrab "https://github.com/chainski/xenorat/blob/main/Plugins/PassGrab/InfoGrab.cs"
click node_startup "https://github.com/chainski/xenorat/blob/main/Plugins/Startup/Startup.cs"
click node_uac "https://github.com/chainski/xenorat/blob/main/Plugins/Uacbypass/uacbypass.cs"
click node_wave "https://github.com/chainski/xenorat/blob/main/Plugins/LiveMicrophone/lib/NAudio.Core/Wave/WaveFormats/WaveFormat.cs"
click node_wasapi "https://github.com/chainski/xenorat/blob/main/Plugins/LiveMicrophone/lib/NAudio.Wasapi/CoreAudioApi/AudioClient.cs"
click node_cameraapi "https://github.com/chainski/xenorat/blob/main/Plugins/WebCam/AForge/Video.DirectShow/VideoCaptureDevice.cs"

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_serverentry,node_cliententry,node_clienthandler,node_dll,node_clienttransport,node_servertransport toneBlue
class node_chat,node_hvnc,node_keylog,node_offlinekey,node_file,node_process,node_registry,node_shell,node_proxy,node_passgrab,node_startup,node_uac toneAmber
class node_webcam,node_mic,node_screen,node_cameraapi toneMint
class node_wave,node_wasapi toneRose
class node_operator toneIndigo
```

## Components

### Control applications

- [Server UI](https://github.com/chainski/xenorat/blob/main/xeno%20rat%20server/MainForm.cs): `xeno rat server/MainForm.cs`
- [Server entry](https://github.com/chainski/xenorat/blob/main/xeno%20rat%20server/Program.cs): `xeno rat server/Program.cs`
- [Client startup](https://github.com/chainski/xenorat/blob/main/xeno%20rat%20client/Program.cs): `xeno rat client/Program.cs`
- [Client dispatcher](https://github.com/chainski/xenorat/blob/main/xeno%20rat%20client/Handler.cs): `xeno rat client/Handler.cs`
- [Plugin loader](https://github.com/chainski/xenorat/blob/main/xeno%20rat%20client/DllHandler.cs): `xeno rat client/DllHandler.cs`
- [Client transport](https://github.com/chainski/xenorat/blob/main/xeno%20rat%20client/SocketHandler.cs): `xeno rat client/SocketHandler.cs`
- [Server transport](https://github.com/chainski/xenorat/blob/main/xeno%20rat%20server/SocketHandler.cs): `xeno rat server/SocketHandler.cs`

### Remote features

- [Chat](https://github.com/chainski/xenorat/blob/main/Plugins/Chat/Chat.cs): `Plugins/Chat/Chat.cs`
- [Hidden desktop](https://github.com/chainski/xenorat/blob/main/Plugins/Hvnc/Process%20Handler.cs): `Plugins/Hvnc/Process Handler.cs`
- [Key logging](https://github.com/chainski/xenorat/blob/main/Plugins/KeyLogger/keyLogger.cs): `Plugins/KeyLogger/keyLogger.cs`
- [Offline key logging](https://github.com/chainski/xenorat/blob/main/Plugins/KeyLoggerOffline/KeyLoggerOffline.cs): `Plugins/KeyLoggerOffline/KeyLoggerOffline.cs`
- [File management](https://github.com/chainski/xenorat/blob/main/Plugins/File%20manager/File%20manager.cs): `Plugins/File manager/File manager.cs`
- [Process management](https://github.com/chainski/xenorat/blob/main/Plugins/ProcessManager/ProcessManager.cs): `Plugins/ProcessManager/ProcessManager.cs`
- [Registry management](https://github.com/chainski/xenorat/blob/main/Plugins/Registry%20Manager/Registry%20Manager.cs): `Plugins/Registry Manager/Registry Manager.cs`
- [Shell](https://github.com/chainski/xenorat/blob/main/Plugins/Shell/Shell.cs): `Plugins/Shell/Shell.cs`
- [Reverse proxy](https://github.com/chainski/xenorat/blob/main/Plugins/ReverseProxy/ReverseProxy.cs): `Plugins/ReverseProxy/ReverseProxy.cs`
- [Credential collection](https://github.com/chainski/xenorat/blob/main/Plugins/PassGrab/InfoGrab.cs): `Plugins/PassGrab/InfoGrab.cs`
- [Startup management](https://github.com/chainski/xenorat/blob/main/Plugins/Startup/Startup.cs): `Plugins/Startup/Startup.cs`
- [Privilege handling](https://github.com/chainski/xenorat/blob/main/Plugins/Uacbypass/uacbypass.cs): `Plugins/Uacbypass/uacbypass.cs`

### Capture libraries

- [Webcam capture](https://github.com/chainski/xenorat/blob/main/Plugins/WebCam/WebCam.cs): `Plugins/WebCam/WebCam.cs`
- [Microphone](https://github.com/chainski/xenorat/blob/main/Plugins/LiveMicrophone/LiveMicrophone.cs): `Plugins/LiveMicrophone/LiveMicrophone.cs`
- [Screen control](https://github.com/chainski/xenorat/blob/main/Plugins/ScreenControl/ScreenControl.cs): `Plugins/ScreenControl/ScreenControl.cs`
- [Camera capture API](https://github.com/chainski/xenorat/blob/main/Plugins/WebCam/AForge/Video.DirectShow/VideoCaptureDevice.cs): `Plugins/WebCam/AForge/Video.DirectShow/VideoCaptureDevice.cs`

### Audio support

- [Wave formats](https://github.com/chainski/xenorat/blob/main/Plugins/LiveMicrophone/lib/NAudio.Core/Wave/WaveFormats/WaveFormat.cs): `Plugins/LiveMicrophone/lib/NAudio.Core/Wave/WaveFormats/WaveFormat.cs`
- [Audio device API](https://github.com/chainski/xenorat/blob/main/Plugins/LiveMicrophone/lib/NAudio.Wasapi/CoreAudioApi/AudioClient.cs): `Plugins/LiveMicrophone/lib/NAudio.Wasapi/CoreAudioApi/AudioClient.cs`

### Other components

- **Operator**

## Connections

- Operator → Server UI: uses (evidence: `README.md`)
- Server entry → Server UI: starts (evidence: `xeno rat server/Program.cs`)
- Client startup → Client dispatcher: creates and dispatches (evidence: `xeno rat client/Program.cs`)
- Client dispatcher → Plugin loader: dispatches plugin (evidence: `xeno rat client/Handler.cs`)
- Client startup → Client transport: uses connection
- Server UI → Server transport: uses connection
- Server UI → Chat: offers feature (evidence: `README.md`)
- Server UI → Hidden desktop: offers feature (evidence: `README.md`)
- Server UI → Webcam capture: offers feature (evidence: `README.md`)
- Server UI → Microphone: offers feature (evidence: `README.md`)
- Server UI → Screen control: offers feature (evidence: `README.md`)
- Server UI → Key logging: offers feature (evidence: `README.md`)
- Server UI → Offline key logging: offers feature (evidence: `README.md`)
- Server UI → File management: offers feature (evidence: `README.md`)
- Server UI → Process management: offers feature (evidence: `README.md`)
- Server UI → Registry management: offers feature (evidence: `README.md`)
- Server UI → Shell: offers feature (evidence: `README.md`)
- Server UI → Reverse proxy: offers feature (evidence: `README.md`)
- Server UI → Credential collection: offers feature (evidence: `README.md`)
- Server UI → Startup management: offers feature (evidence: `README.md`)
- Server UI → Privilege handling: offers feature (evidence: `README.md`)
- Microphone → Audio device API: uses audio API
- Audio device API → Wave formats: uses formats (evidence: `Plugins/LiveMicrophone/lib/NAudio.Wasapi/CoreAudioApi/AudioClient.cs`)
- Webcam capture → Camera capture API: uses capture API
