Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 hours 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-04T21:13:40.000Z (3 months ago)
- Last Synced: 2024-09-08T14:24:37.154Z (2 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://github.com/Birdo1221/Basic-Go-Cnc
- 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
# :rocket: **Simple Botnet Command and Control (C&C) Server in Go.**
## This project is Depreciated and Wont recive further updatesIve Updated This Project For Both the Server And Client
On My New Repo, This is the link to the: [Better Varient](https://github.com/Birdo1221/Better-Go-Cnc/):white_check_mark: Getting Started
Make sure you have Go installed on your system.
You can download and install it from the official siteFor Windows
```
https://go.dev/dl/
```
Or for Linux Based OS'S
```
apt install golang
yum install golang
dnf install golang
```:wrench: You may need to configure the files for there IP's or Port Values
Edit Line 10-11 to change the IP to connect to and the Port for the Bot connection
```
const (
cncServerIP = "127.0.0.1" // Replace with your CNC server IP
cncServerPort = ":5000" // Replace with your CNC server port
)
```Edit Line 14 to change the Bot Port for the Port the Bot / Client Connects at.
```
const (
botPort = ":5000" // Bot will listen on port 5000
)
```Edit Line 218-219 for the server IP to bind to and Port for the User Login on the server
```
cncServerIP := "127.0.0.1"
cncServerPort := "6000"
```To compile the C&C server and the bot server, follow these steps:
Clone this repository, Change folder dir to the main program file and using the Go compiler
```
go build main.gogo build bot.go
go run main.go
go run bot.go
```:gear: Running the C&C Server
Start the C&C server on port 1338 [default port].
```
./main
```After Start the Bot / Client on a virtual machine or on your local machine to test it out, monitor you network to see the packet to the [ Client <--> Bot ] or [ Bot <--> Client ] , i wouldnt recommend using on public foward facing networks as it has no security implementations or anything to save you.
```
./main
```:speech_balloon: The C&C server will start listening for incoming connections from Clients on port 1338.
You can change via the SRC.
Login info is on a text file in this format. [Users.txt]
```
Admin:Passwd
```
Once connected to the C&C server, the administrator can send commands.
:bulb: Example Commands
```
bots: Get the number of connected bots.clear: Clear the screen of the connected bot terminals.
logout: Log out from the C&C server.
```To connect To the cnc I would recommend using mobaxterm or putty use the ip the server is running on and the botport and then you will be a login menu for the cnc
❗ Remember that this is a POC / concept
:lock: Security Considerations
This project is intended for educational and learning purposes only. The code provided here is a very simplified example of a botnet architecture. Remember that using a botnet for any malicious purposes is strictly prohibited and against ethical guidelines. This project is intended for educational and learning purposes only.
The code does not include advanced security measures, and it is not suitable for Public use. If you plan to build a real botnet or similar systems, ensure that you understand the legal implications of you actions and the importance of securing system's to prevent unauthorized access.
:page_with_curl: This project is licensed under the MIT License - see the LICENSE file for details.