How itsnold/nagomio-c2 works
Nagomio-C2 is a separated operator UI, Rust teamserver, shared API-types crate, and C++ agent. The principal workflow is operator tasking through the UI and server, agent beacon/task execution, and response or media return. The README also documents payload building, authentication/encrypted transport, persistence, SOCKS pivoting, and broad post-exploitation capabilities. Some subsystems are represented from README descriptions because their implementation was not sampled; unverified connections are omitted or dashed.
Main entry points: main.rs HTTP API and tasking · main.cpp Beacon and task loop · Agents.tsx Session operations · App.tsx Desktop shell
Components 25
Operator UI
- Desktop shell
tauri-client/src/App.tsx - API state
tauri-client/src/components/AppContext.tsx - Session operations
tauri-client/src/pages/Agents.tsx - Command templates
tauri-client/src/lib/commandCatalog.ts - Console aliases
tauri-client/src/lib/consoleCommands.ts - Remote file browser
tauri-client/src/components/FileBrowser.tsx - Live media view
tauri-client/src/pages/LiveStreamWindow.tsx - Payload builder
tauri-client/src/pages/Builder.tsx
Teamserver
- HTTP API and tasking
teamserver/src/main.rs - Request authentication
teamserver/src/auth.rs - SQLite persistence
teamserver/src/persistence.rs - Stale task recovery
teamserver/src/requeue.rs - SOCKS relay
teamserver/src/socks.rs - Audit logging
teamserver/src/audit.rs - Payload build service
teamserver/src
Agent runtime
- Beacon and task loop
agent/src/main.cpp - Command modules
agent/src/modules - Capture and streaming
agent/src/modules/stream_common.h - Stream session state
agent/src/modules/stream_state.h - Optional evasion
agent/src/evade_win.cpp
Wire and profiles
- Callback profiles
agent/src/profiles.cpp - Wire encryption
agent/src/wire.cpp
Shared contracts
- Task protocol types
agent/src/protocol.h - API data types
shared/src/lib.rs
Other components
- Operator
Connections 27
- Operator → Desktop shell: opens
- Desktop shell → Session operations: routes to
tauri-client/src/App.tsx - Desktop shell → Payload builder: routes to
tauri-client/src/App.tsx - Desktop shell → Live media view: routes to
tauri-client/src/App.tsx - Session operations → API state: uses API state
tauri-client/src/pages/Agents.tsx - Session operations → Console aliases: parses input
tauri-client/src/pages/Agents.tsx - Console aliases → Command templates: builds tasks
tauri-client/src/lib/consoleCommands.ts - Session operations → Command templates: uses templates
tauri-client/src/pages/Agents.tsx - Session operations → Remote file browser: opens browser
tauri-client/src/pages/Agents.tsx - API state → HTTP API and tasking: HTTP requests
- Payload builder → HTTP API and tasking: requests builds
- HTTP API and tasking → Request authentication: verifies requests
teamserver/src/main.rs - HTTP API and tasking → SQLite persistence: persists state
teamserver/src/main.rs - HTTP API and tasking → Stale task recovery: recovers tasks
teamserver/src/main.rs - HTTP API and tasking → SOCKS relay: starts relay
teamserver/src/main.rs - HTTP API and tasking → Audit logging: records audit
teamserver/src/main.rs - HTTP API and tasking → Payload build service: builds payloads
teamserver/src/main.rs - Beacon and task loop → HTTP API and tasking: beacons and reports
- Beacon and task loop → Callback profiles: configures callbacks
agent/src/main.cpp - Beacon and task loop → Wire encryption: seals transport
agent/src/main.cpp - Beacon and task loop → Command modules: dispatches tasks
agent/src/main.cpp - Command modules → Capture and streaming: uses capture helpers
agent/src/modules/stream_common.h - Capture and streaming → Stream session state: uses session state
agent/src/modules/stream_common.h - Beacon and task loop → Optional evasion: runs optional checks
agent/src/main.cpp - Command modules → SOCKS relay: relays pivot traffic
- Beacon and task loop → Task protocol types: uses task types
agent/src/main.cpp - HTTP API and tasking → API data types: uses API contracts