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