OpenRung
A free, privacy-first relay network that helps you reach the open internet. Open source and nonprofit-run.
翻訳待ち
No updates detected yet. GitHub releases will appear here.
C2 pet project
翻訳待ち
Loading the full README.
Read the full README ↗A modern, distributed Command & Control (C2) framework designed for secure remote administration and red team operations. Built with Go for the backend services and Python for the operator interface.
Documentation: nexusc2.io
This C2 framework provides a robust platform for managing remote agents through a scalable, microservices-based architecture. It features real-time bidirectional communication, dynamic payload generation, and comprehensive operational security features.
📊 Interactive Diagram: For a detailed interactive version of this architecture diagram with comprehensive documentation, download and open docs/c2-architecture.html in your browser.
graph TB
subgraph External["🌐 External Network"]
direction LR
Agent["💻 Compromised Agent<br/>(Implant on Target)"]
Spacer[" "]
Client["👤 Operator Client<br/>(GUI / API)"]
end
subgraph HostSystem[" "]
direction TB
HostLabel["🖥️ Host System - Docker Host"]
subgraph FirewallLayer[" "]
FW_Label["🛡️ Firewall Layer"]
FW_Allow["✅ Allow: 127.0.0.1<br/>✅ Allow: 172.28.0.0/16<br/>❌ Block: External → :50051"]
end
subgraph HostNetwork[" "]
HN_Label["🔴 Host Network Mode"]
AgentHandler["⚡ Agent-Handler<br/>network_mode: host<br/>gRPC: 0.0.0.0:50051<br/>Listeners: Any Port"]
end
subgraph DockerBridge[" "]
DB_Label["🔵 Docker Bridge Network<br/>172.28.0.0/16"]
Database["🗄️ PostgreSQL<br/>172.28.0.2:5432"]
Websocket["🌐 WebSocket Server<br/>172.28.0.3:3131"]
RestAPI["🔌 REST API<br/>172.28.0.6:8443"]
Builder["🔨 Builder Service<br/>172.28.0.5<br/>(Local/Remote)"]
end
end
RemoteBuilder["🔨 Remote Builder<br/>(Optional)<br/>mTLS :9443"]
%% External Connections
Agent <-->|"HTTPS/HTTP"| AgentHandler
Client <-->|"WSS :3131"| Websocket
Client <-->|"HTTPS :8443"| RestAPI
%% Internal connections
Websocket <-->|"gRPC :50051"| AgentHandler
RestAPI <-->|"gRPC :50051"| AgentHandler
Websocket -->|":5432"| Database
RestAPI -->|":5432"| Database
AgentHandler -->|":5432"| Database
Websocket -.->|"Docker API"| Builder
RestAPI -.->|"Docker API"| Builder
Websocket -.->|"mTLS"| RemoteBuilder
RestAPI -.->|"mTLS"| RemoteBuilder
FW_Allow -.->|"Protects"| AgentHandler
%% Styling
classDef hostNet fill:#e74c3c,stroke:#c0392b,stroke-width:3px,color:#fff
classDef bridgeNet fill:#4a90e2,stroke:#2980b9,stroke-width:2px,color:#fff
classDef external fill:#95a5a6,stroke:#7f8c8d,stroke-width:2px,color:#fff
classDef firewall fill:#f39c12,stroke:#e67e22,stroke-width:3px,color:#000
classDef spacer fill:none,stroke:none,color:transparent
classDef label fill:none,stroke:none,color:#fff,font-weight:bold
class AgentHandler hostNet
class Database,Websocket,RestAPI,Builder bridgeNet
class Agent,Client,RemoteBuilder external
class FW_Allow firewall
class Spacer spacer
class HostLabel,FW_Label,HN_Label,DB_Label label
Message Flow:
Network Architecture:
network_mode: host for dynamic port bindingNetwork Ports:
This is the beginning of the README. Read the rest at the original. Read the full README ↗