Skip to content

Commit 88491e5

Browse files
committed
更新README
1 parent 6ce9f59 commit 88491e5

File tree

8 files changed

+289
-68
lines changed

8 files changed

+289
-68
lines changed

README.md

+71-28
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,97 @@
1-
# 2D05 网络测试工具
1+
<div align="center">
2+
<h1>🌐 2D05 网络测试工具</h1>
3+
<p>
4+
<img src="https://img.shields.io/badge/version-1.0.0-blue.svg" alt="version"/>
5+
<img src="https://img.shields.io/badge/license-MIT-green.svg" alt="license"/>
6+
<img src="https://img.shields.io/badge/platform-MacOS%20%7C%20Linux-lightgrey.svg" alt="platform"/>
7+
</p>
8+
</div>
9+
10+
## 📖 简介
11+
212
这款工具是一种 **分布式拒绝服务(DDoS)攻击工具**,它的核心原理是通过调动大量计算资源,同时向目标服务器或网络设备发送海量请求,从而造成服务器资源被耗尽、带宽被占满,最终导致目标系统无法处理正常用户的访问请求,甚至彻底瘫痪。
313

4-
在实际应用中,这类工具通常被用于压力测试、安全研究,或(在非法用途下)发动大规模网络攻击。它可以模拟成千上万台设备的访问行为,使目标服务器误以为遭遇了超大规模的用户流量,导致服务响应变慢甚至宕机。此外,某些高级 DDoS 工具还能采用分布式僵尸网络(Botnet)技术,通过控制成千上万台受感染的计算机协同发动攻击,使攻击源头难以追踪并具备极高的破坏性。
14+
## 🏗️ 系统架构
515

6-
尽管 DDoS 工具在网络安全领域有一定的研究价值,但它的滥用可能导致严重的法律后果。因此,在使用此类工具时,必须确保遵守相关法律法规,并仅用于授权测试或防御研究,而非恶意攻击行为。
16+
<div align="center">
17+
<img src="assets/2D05.png" alt="2D05 系统架构图" width="800"/>
18+
</div>
719

8-
## 免责声明
9-
作为本软件的作者,我明确声明:本软件仅用于合法、合规、合理的用途。任何用户使用本软件执行的操作均由用户自行承担责任。本人不对任何因使用本软件而导致的直接或间接损害、法律责任、经济损失、数据丢失或其他任何后果承担责任。
20+
#### 系统主要由以下组件构成:
21+
22+
- 🔐 用户协议管理
23+
- 🌊 流量发送器(HTTP/PING)
24+
- 🛡️ 安全保护机制
25+
- 📝 响应分析系统
26+
- 🗄️ 状态存储(SQLite)
1027

11-
## 法律警告
12-
```
13-
本软件仅供合法用途,任何滥用均由用户自行承担责任,作者概不负责。根据《中华人民共和国网络安全法》《中华人民共和国刑法》《计算机信息系统安全保护条例》等法律,未经授权入侵计算机系统、传播恶意软件、窃取数据、进行网络诈骗、攻击关键信息基础设施等行为均属违法,违法者可被判处最高七年以上有期徒刑,并处以罚金或财产没收。本软件不提供任何担保,使用风险由用户自行承担。下载、安装、使用本软件即表示您已阅读、理解并同意本免责声明,如不同意,请立即删除本软件并停止使用。
14-
```
1528

16-
## 功能特点
17-
- HTTP 请求测试
18-
- 响应头分析
19-
- Cookie 检查
20-
- 内容类型验证
21-
- 状态码监控
29+
## 🔍 工作原理
2230

23-
## 依赖项
24-
- libcurl
31+
在实际应用中,这类工具通常被用于压力测试、安全研究,或(在非法用途下)发动大规模网络攻击。它可以模拟成千上万台设备的访问行为,使目标服务器误以为遭遇了超大规模的用户流量,导致服务响应变慢甚至宕机。
32+
33+
> ⚠️ 尽管 DDoS 工具在网络安全领域有一定的研究价值,但它的滥用可能导致严重的法律后果。因此,在使用此类工具时,必须确保遵守相关法律法规,并仅用于授权测试或防御研究,而非恶意攻击行为。
34+
35+
## ⚡ 功能特点
36+
37+
- 🔄 HTTP 请求测试
38+
- 📊 响应头分析
39+
- 🍪 Cookie 检查
40+
- 📝 内容类型验证
41+
- 📈 状态码监控
42+
43+
## 🛠️ 依赖项
44+
45+
- [libcurl](https://curl.se/libcurl/) - 强大的网络请求库
2546
- C++11 或更高版本
2647

27-
## 安装方法
48+
## 📥 安装方法
2849

50+
1. 安装依赖:
2951
```bash
30-
# 安装 libcurl (MacOS)
3152
brew install curl
53+
````
3254

33-
# 编译项目
55+
2. 编译项目:
56+
57+
```bash
3458
clang++ -std=c++11 -o bin/2D05 main.cpp src/Controller/TrafficFlood.cpp -lcurl
35-
````
59+
```
3660

37-
## 使用方法
61+
## 🚀 使用方法
3862

3963
```bash
4064
./bin/2D05
4165
```
4266

43-
## 免责声明
67+
## ⚠️ 免责声明
68+
69+
<details>
70+
<summary>点击展开查看完整免责声明</summary>
71+
72+
作为本软件的作者,我明确声明:本软件仅用于合法、合规、合理的用途。任何用户使用本软件执行的操作均由用户自行承担责任。本人不对任何因使用本软件而导致的直接或间接损害、法律责任、经济损失、数据丢失或其他任何后果承担责任。
73+
74+
</details>
75+
76+
## 📜 法律警告
77+
78+
<details>
79+
<summary>点击展开查看法律警告</summary>
80+
81+
本软件仅供合法用途,任何滥用均由用户自行承担责任,作者概不负责。根据《中华人民共和国网络安全法》《中华人民共和国刑法》《计算机信息系统安全保护条例》等法律,未经授权入侵计算机系统、传播恶意软件、窃取数据、进行网络诈骗、攻击关键信息基础设施等行为均属违法,违法者可被判处最高七年以上有期徒刑,并处以罚金或财产没收。
82+
83+
</details>
4484

45-
本工具仅供教育目的使用。用户在测试任何网络端点之前必须确保已获得适当授权。
85+
## 📄 开源协议
4686

47-
## 开源协议
87+
本项目采用 [MIT](LICENSE) 许可证
4888

49-
MIT 许可证
89+
## 👨‍💻 作者
5090

51-
## 作者
91+
**钟智强**
5292

53-
钟智强
93+
---
5494

95+
<div align="center">
96+
<sub>由钟智强用 ❤️ 开发</sub>
97+
</div>

assets/2D05.png

92.5 KB
Loading

database/2d05.db

0 Bytes
Binary file not shown.

docs/2D05.puml

+41-16
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,49 @@
1-
@startuml 2D05
1+
@startuml 2D05
22
left to right direction
33

4-
actor "Attacker" as Hacker
5-
rectangle "Command & Control (C2)" as C2 {
6-
component "Botmaster Server"
4+
actor "用户" as User
5+
rectangle "2D05 工具" as Tool {
6+
component "用户协议" as Agreement
7+
component "流量发送器" as TrafficFlood {
8+
component "HTTP请求" as HTTP
9+
component "PING请求" as PING
10+
}
11+
database "SQLite" as DB
712
}
8-
cloud "Botnet" {
9-
component "Compromised Devices (Bots)"
10-
component "IoT Devices"
11-
component "Servers"
13+
14+
rectangle "目标系统" as Target {
15+
component "Web服务器" as WebServer
16+
component "DNS服务器" as DNS
1217
}
13-
rectangle "Target" as Target {
14-
component "Web Server"
15-
component "Database"
18+
19+
rectangle "保护机制" as Protection {
20+
component "中国域名检测" as CNFilter
21+
component "URL验证" as URLCheck
22+
component "响应分析" as Response
1623
}
1724

18-
Hacker --> C2 : 1. Sends attack command
19-
C2 --> Botnet : 2. Propagates instructions
20-
Botnet --> Target : 3. Floods target with traffic (HTTP/SYN/UDP)
21-
Target --> Target : 4. Resource exhaustion (CPU/RAM/Bandwidth)
22-
Target --> [Down] : 5. Service disruption
25+
User --> Agreement : 1. 同意条款
26+
Agreement <--> DB : 存储状态
27+
User --> TrafficFlood : 2. 输入目标URL
28+
TrafficFlood --> CNFilter : 3. 域名检查
29+
CNFilter --> TrafficFlood : 4. 验证结果
30+
31+
TrafficFlood --> DNS : 5. 解析域名
32+
DNS --> TrafficFlood : 6. 返回IP
33+
34+
TrafficFlood --> URLCheck : 7. 可访问性检查
35+
URLCheck --> TrafficFlood : 8. 验证结果
36+
37+
TrafficFlood --> Target : 9. 发送请求
38+
Target --> Response : 10. 返回响应
39+
Response --> User : 11. 显示结果
40+
41+
note right of Protection
42+
内置安全机制:
43+
- 禁止攻击中国域名
44+
- URL可访问性验证
45+
- 超时保护
46+
- 错误处理
47+
end note
2348

2449
@enduml

main.cpp

+22
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/**
2+
* 2D05 网络测试工具
3+
* 版本: 1.0.0
4+
* 作者: 钟智强
5+
*
6+
* 主程序功能:
7+
* 1. 用户协议确认
8+
* 2. 命令行界面
9+
* 3. URL可访问性验证
10+
* 4. 流量测试控制
11+
*
12+
* 使用流程:
13+
* 1. 初始化系统
14+
* 2. 显示协议
15+
* 3. 获取用户输入
16+
* 4. 执行测试
17+
*
18+
* 安全特性:
19+
* - 强制用户协议确认
20+
* - URL可访问性检查
21+
* - 内置安全限制
22+
*/
123
#include <iomanip>
224
#include <iostream>
325
#include <string>

src/Controller/Agreement.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/**
2+
* 用户协议管理模块
3+
*
4+
* 功能说明:
5+
* 1. 管理用户协议的接受状态
6+
* 2. 使用SQLite数据库存储协议状态
7+
* 3. 提供协议展示和确认功能
8+
*
9+
* 数据库结构:
10+
* - 表名:agreement
11+
* - 字段:agreed (INTEGER)
12+
* - 默认值:0(未同意)
13+
*/
114
#include "Agreement.h"
215

316
#include <sqlite3.h>

src/Controller/PingFlood.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/**
2+
* PING测试模块
3+
*
4+
* 功能说明:
5+
* 1. 支持Windows和Unix系统
6+
* 2. 提供高强度PING请求功能
7+
* 3. 自动隐藏系统输出
8+
* 4. 提供校验和计算功能
9+
*
10+
* 实现特点:
11+
* - Windows: 使用 ping -t 持续PING
12+
* - Unix: 使用 ping -c 指定次数
13+
* - 支持静默模式运行
14+
*/
115
#include "PingFlood.h"
216

317
#include <arpa/inet.h>

0 commit comments

Comments
 (0)