2016-10-03 29 views
0

私は、キャプチャしようとしている特定のAPIエンドポイントにリクエストを含むパケットがとても以下を使用してフィルタリングすることを試みた:tsharkのパケットキャプチャフィルタ

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を削除しようとしましたが、それでも役に立たなかったです。助言がありますか?

例えばURL:https://testAPI.com/termsearch/google/application

答えて

0

あなたtsharkコマンドが正しくありません。 Wiresharkディスプレイフィルタを指定するには、-Yオプションを使用する必要があります。

のWindows:

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

の* nix:

tshark -i 2 -T pdml -Y 'http.request.uri contains "/google/"' 
関連する問題