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.
A modern, cross-platform command and control framework with encrypted communications, in-memory execution, and comprehensive pivoting capabilities.
SecurityGo · PythonGitHub @seahopOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
C2 pet project
Translation pending
Taken from the repository README
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:
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