This project is no longer maintained. For the latest version, please visit the Enhanced Version.
A simple Command and Control (C&C) server implementation in Go, created for educational purposes to understand network programming and client-server architecture.
- Go programming language installed on your system
Download and install Go from official website
Choose your package manager:
# Debian/Ubuntu
apt install golang
# RHEL/CentOS
yum install golang
# Fedora
dnf install golang
Edit these values in bot.go
:
const (
cncServerIP = "127.0.0.1" // Your CNC server IP
cncServerPort = ":5000" // Your CNC server port
)
const (
botPort = ":5000" // Bot listening port
)
Edit these values in main.go
:
cncServerIP := "127.0.0.1" // Server binding IP
cncServerPort := "6000" // User login port
- Clone the repository
- Navigate to the project directory
- Build and run the components:
# Build components
go build main.go
go build bot.go
# Run components
go run main.go
go run bot.go
./main
Create a Users.txt
file with credentials in the following format:
Admin:Passwd
bots
: Display number of connected botsclear
: Clear bot terminal screenslogout
: Disconnect from C&C server
Use MobaXterm or PuTTY to connect:
- Enter server IP address
- Use configured bot port
- Login with credentials from Users.txt
This project is:
- Educational Only: Created for learning network programming
- Not Production-Ready: Lacks security features
- Local Testing Only: Not suitable for public networks
- Proof of Concept: Demonstrates basic C&C architecture
This code is for educational purposes only. Usage for malicious purposes is strictly prohibited. Users must:
- Understand local cybersecurity laws
- Obtain proper authorization for testing
- Use only in controlled environments
- Accept full responsibility for usage
This project is licensed under the MIT License - see the LICENSE file for details.