In this repository, I show how a simple DDoS works, but remember: It is for educational use only, don't execute this script in real world applications!
Clone the project
git clone https://github.com/franciscofeo/go-ddos.git
Go to the project directory
cd go-ddos
Start the application
go run main.go <url> <workers quantity>
After started a server locally in http://localhost:8080, we just have to write this code below to execute the attack with 300 workers:
go run main.go http://localhost:8080 300