Update Gofuck.go
This commit is contained in:
parent
5968e758ec
commit
3b6a447c4b
@ -7,9 +7,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
// 定义线程数,可自定义
|
||||||
const THREADS = 180
|
const THREADS = 180
|
||||||
func attack(ip string, port int, duration int) {
|
func attack(ip string, port int, duration int) {
|
||||||
|
// 定义包字节,可自定义
|
||||||
bytes := make([]byte, 60000)
|
bytes := make([]byte, 60000)
|
||||||
startTime := time.Now()
|
startTime := time.Now()
|
||||||
endTime := startTime.Add(time.Duration(duration) * time.Second)
|
endTime := startTime.Add(time.Duration(duration) * time.Second)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user