Lantunnel
Install Lantunnel Client on each participating device to access your whole LAN from anywhere with P2P-first low-latency routing, encrypted transport, and relay fallback without port forwarding.
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证C2 pet project
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 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:
The framework includes a modular setup script that handles all dependencies and configuration:
cd scripts
sudo ./setup.sh
This will install and configure:
For detailed installation options and troubleshooting, see SETUP.md
The setup script supports modular execution for recovery scenarios:
# Re-run specific components if something fails
sudo ./setup.sh --certs # Only regenerate certificates
sudo ./setup.sh --secrets # Only regenerate database secrets
sudo ./setup.sh --docker # Only install Docker
sudo ./setup.sh --help # See all available options
If you prefer manual installation or need to customize specific steps:
cd scripts
sudo ./setup.sh
cd ../server/docker
docker compose up -d
cd client
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Configure certificates (automatically handled by setup script)
Launch the GUI:
source venv/bin/activate
cd src
python main.py
.
├── scripts/
│ ├── setup.sh # Modular setup script
│ └── gen_default_certs.sh
├── docs/
│ ├── API.md # REST API reference with curl examples
│ ├── SETUP.md # Detailed installation guide
│ ├── LOGVIEWER.md # Details for logviewer executable
│ ├── MALLEABLE-PROFILES.md # Traffic customization guide
│ └── c2-architecture.html
├── server/
│ ├── cmd/ # Service entry points
│ ├── internal/ # Core C2 services logic
│ ├── docker/ # Docker configurations
│ │ └── payloads/ # Agent source code
│ └── configs/ # Service configurations
├── client/
│ ├── src/ # Python GUI source
│ └── certs/ # Client certificates
See REST API Reference for complete endpoint documentation with curl examples.
A Python CLI tool is included at server/scripts/nexus-api.py for testing and automation:
# Login and save credentials
./nexus-api.py login -u admin -p password
# List agents
./nexus-api.py agents list
# Send a command
./nexus-api.py command <agent_id> "whoami"
# Build a payload
./nexus-api.py payload build -l https-listener -o windows -a amd64
If you encounter issues during installation:
sudo ./setup.sh --certs # Regenerate certificates
sudo ./setup.sh --docker # Reinstall Docker
go versionscripts/certs/For more details, see the Setup Guide.
MIT
This project uses code from the following open source projects:
See THIRD_PARTY_LICENSES.md for full license texts.
This software is provided for authorized security testing purposes only. Users are responsible for complying with all applicable laws and regulations. The authors assume no liability for misuse or damage caused by this software.
Quick Start Command:
cd scripts
sudo ./setup.sh