Documentation
¶
Overview ¶
Package MyWaf ----------------------------- @author : EndlessShw @time : 2025/10/15 9:43 @Description : 分析请求模块,包含各个攻击类型的分析 -------------------------------------------
Package MyWaf ----------------------------- @author : EndlessShw @time : 2025/9/19 0:10 @Description : 存放一些上层/全局用到的参数 -------------------------------------------
Package MyWaf ----------------------------- @author : EndlessShw @time : 2025/9/20 16:15 @Description : 常见的错误常量 -------------------------------------------
Package MyWaf ----------------------------- @author : EndlessShw @time : 2025/11/1 17:07 @Description : 对接 Falcosidekick 的结构体以及方法 -------------------------------------------
Package MyWaf ----------------------------- @author : EndlessShw @time : 2025/9/18 14:50 @Description : 定义了“用于处理拦截”的 handler -------------------------------------------
Package MyWaf ----------------------------- @author : EndlessShw @time : 2025/9/19 14:51 @Description : 主类,主要负责实例创建和初始化、流入流量的预处理等 -------------------------------------------
Package MyWaf ----------------------------- @author : EndlessShw @time : 2025/9/22 23:07 @Description : 上层常用工具类 -------------------------------------------
Package MyWaf ----------------------------- @author : EndlessShw @time : 2025/9/19 0:23 @Description : 全局变量 -------------------------------------------
Package MyWaf ----------------------------- @author : EndlessShw @time : 2025/9/23 10:57 @Description : 将 yaml 文件中的 Custom 规则反序列化成结构体 -------------------------------------------
Index ¶
Constants ¶
const ( XMyWafMsg = "X-My-Waf-Msg" // DefaultRespStatus 表示 RespHTMLResponse 默认适用的 HTTPStatus。 DefaultRespStatus = http.StatusForbidden // DefaultRespHTMLResponse 中 ID、message 和 threat 根据分析时的结果填充 DefaultRespHTMLResponse = `` /* 1198-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package main ----------------------------- @author : EndlessShw @time : 2025/9/14 14:43 @Description : 使用案例 -------------------------------------------
|
Package main ----------------------------- @author : EndlessShw @time : 2025/9/14 14:43 @Description : 使用案例 ------------------------------------------- |
|
internal
|
|
|
dsl
Package dsl ----------------------------- @author : EndlessShw @time : 2025/9/17 17:46 @Description : -------------------------------------------
|
Package dsl ----------------------------- @author : EndlessShw @time : 2025/9/17 17:46 @Description : ------------------------------------------- |
|
model
Package model ----------------------------- @author : EndlessShw @time : 2025/10/5 13:51 @Description : CVE 的对应实体类 -------------------------------------------
|
Package model ----------------------------- @author : EndlessShw @time : 2025/10/5 13:51 @Description : CVE 的对应实体类 ------------------------------------------- |
|
Package option ----------------------------- @author : EndlessShw @time : 2025/9/23 21:37 @Description : 存放 option 中的一些默认常量 -------------------------------------------
|
Package option ----------------------------- @author : EndlessShw @time : 2025/9/23 21:37 @Description : 存放 option 中的一些默认常量 ------------------------------------------- |
|
Package request ----------------------------- @author : EndlessShw @time : 2025/9/19 10:34 @Description : Rules.Element 指定的部分,其中 Method 类型过多,因此单独分开 -------------------------------------------
|
Package request ----------------------------- @author : EndlessShw @time : 2025/9/19 10:34 @Description : Rules.Element 指定的部分,其中 Method 类型过多,因此单独分开 ------------------------------------------- |
|
Package threat ----------------------------- @author : EndlessShw @time : 2025/9/15 22:02 @Description : Threat 中涉及的常量 -------------------------------------------
|
Package threat ----------------------------- @author : EndlessShw @time : 2025/9/15 22:02 @Description : Threat 中涉及的常量 ------------------------------------------- |