Mitmproxy过滤表达式

本页内容


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
此页面最后编辑于2022年8月7日 (星期日) 17:21。