https://github.com/birdo1221/golang-net
A Botnet Server And Client Both Written In Golang
https://github.com/birdo1221/golang-net
botnet c2 client cnc ddos ddos-attacks dos go golang malware malware-development malware-sample server stress-testing
Last synced: 6 months ago
JSON representation
A Botnet Server And Client Both Written In Golang
- Host: GitHub
- URL: https://github.com/birdo1221/golang-net
- Owner: Birdo1221
- License: mit
- Created: 2023-08-03T18:55:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-16T16:12:33.000Z (9 months ago)
- Last Synced: 2025-03-27T01:51:29.405Z (6 months ago)
- Topics: botnet, c2, client, cnc, ddos, ddos-attacks, dos, go, golang, malware, malware-development, malware-sample, server, stress-testing
- Language: Go
- Homepage: https://birdo.uk
- Size: 1.6 MB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🚀 Go Botnet Command and Control (C&C) Server
## ⚠️ Project Status: Deprecated
This project is no longer maintained. For the latest version, please visit the [Enhanced Version](https://github.com/Birdo1221/Better-Go-Cnc/).## 📋 Overview
A simple Command and Control (C&C) server implementation in Go, created for educational purposes to understand network programming and client-server architecture.## 🚦 Prerequisites
- Go programming language installed on your system### Installation Guide
#### Windows
Download and install Go from [official website](https://go.dev/dl/)#### Linux
Choose your package manager:
```bash
# Debian/Ubuntu
apt install golang# RHEL/CentOS
yum install golang# Fedora
dnf install golang
```## ⚙️ Configuration
### Bot Configuration
Edit these values in `bot.go`:
```go
const (
cncServerIP = "127.0.0.1" // Your CNC server IP
cncServerPort = ":5000" // Your CNC server port
)const (
botPort = ":5000" // Bot listening port
)
```### Server Configuration
Edit these values in `main.go`:
```go
cncServerIP := "127.0.0.1" // Server binding IP
cncServerPort := "6000" // User login port
```## 🔧 Installation
1. Clone the repository
2. Navigate to the project directory
3. Build and run the components:```bash
# Build components
go build main.go
go build bot.go# Run components
go run main.go
go run bot.go
```## 🚀 Usage
### Starting the Server
```bash
./main
```### User Authentication
Create a `Users.txt` file with credentials in the following format:
```
Admin:Passwd
```### Available Commands
- `bots`: Display number of connected bots
- `clear`: Clear bot terminal screens
- `logout`: Disconnect from C&C server### Connecting to C&C
Use MobaXterm or PuTTY to connect:
1. Enter server IP address
2. Use configured bot port
3. Login with credentials from Users.txt## ⚠️ Security Notice
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## ⚖️ Legal Disclaimer
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## 📝 License
This project is licensed under the MIT License - see the LICENSE file for details.