【问题标题】:tshark packet capture filter by request urltshark 数据包捕获过滤器按请求 url
【发布时间】:2016-10-03 20:52:32
【问题描述】:

我试图仅捕获包含对某个 API 端点的请求的数据包,因此尝试使用以下内容进行过滤:

 tshark -i 2 -f 'port 80' -T pdml http.request.uri contains "/google/"

但是我不断收到以下错误:

tshark: A capture filter was specified both with "-f" and with additional 
command-line arguments.

尝试删除 -f,但这也无济于事。有什么建议吗?

例如网址:https://testAPI.com/termsearch/google/application

【问题讨论】:

    标签: rest packet-capture tshark


    【解决方案1】:

    您的tshark 命令不正确。要指定 Wireshark 显示过滤器,您需要使用 -Y 选项。

    窗户:

    tshark -i 2 -T pdml -Y "http.request.uri contains \"/google/\""
    

    *尼克斯:

    tshark -i 2 -T pdml -Y 'http.request.uri contains "/google/"'
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-01-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-22
      • 1970-01-01
      相关资源
      最近更新 更多