“Mitmproxy过滤表达式”的版本间差异
本页内容
无编辑摘要 |
无编辑摘要 |
||
(未显示同一用户的1个中间版本) | |||
第1行: | 第1行: | ||
[[Category:Mitmproxy中文教程|6]] | |||
mitmproxy 工具中的许多命令都使用过滤器表达式。过滤器表达式由以下运算符组成: | mitmproxy 工具中的许多命令都使用过滤器表达式。过滤器表达式由以下运算符组成: | ||
第101行: | 第103行: | ||
| and | | and | ||
|- | |- | ||
| | | | <nowiki>|</nowiki> | ||
| or | | or | ||
|- | |- |
2022年8月7日 (日) 17:21的最新版本
mitmproxy 工具中的许多命令都使用过滤器表达式。过滤器表达式由以下运算符组成:
~a | 匹配返回数据中的以下文件类型:CSS、JavaScript、图像、字体。 |
~all | 匹配所有内容 |
~b regex | 匹配Request body和Response body |
~bq regex | Request body |
~bs regex | Response body |
~c int | HTTP response code |
~comment regex | Flow comment |
~d regex | 匹配Domain |
~dns | Match DNS flows |
~dst regex | Match destination address |
~e | Match error |
~h regex | Header |
~hq regex | Request header |
~hs regex | Response header |
~http | Match HTTP flows |
~m regex | Method |
~marked | Match marked flows |
~marker regex | Match marked flows with specified marker |
~meta regex | Flow metadata |
~q | Match request with no response |
~replay | Match replayed flows |
~replayq | Match replayed client request |
~replays | Match replayed server response |
~s | Match response |
~src regex | Match source address |
~t regex | Content-type header |
~tcp | Match TCP flows |
~tq regex | Request Content-Type header |
~ts regex | Response Content-Type header |
~u regex | URL |
~websocket | Match WebSocket flows |
! | unary not |
& | and |
| | or |
(...) | grouping |