| 用途 | 对字符串字段做正则匹配 |
|---|---|
| 语法 | 字段 matches "正则" |
常用示例
常用示例
http.request.uri matches "\\.(png|jpe?g|gif)$"
http.user_agent matches "(?i)curl|python-requests"
frame contains "Attack" || frame contains "SQL"正则里的反斜杠要按 Wireshark 转义规则写;先在小样本上验证表达式再放大文件跑。
matches 支持 PCRE 风格正则,可做复杂模式匹配(多值、可选、大小写不敏感);比 contains 灵活但开销更大。
| 用途 | 对字符串字段做正则匹配 |
|---|---|
| 语法 | 字段 matches "正则" |
http.request.uri matches "\\.(png|jpe?g|gif)$"
http.user_agent matches "(?i)curl|python-requests"
frame contains "Attack" || frame contains "SQL"