按域过滤

时间:2014-02-26 00:03:43

标签: networking filter wireshark pcap tshark

我想通过他们的域过滤我的pcap文件。我的意思是,我希望看到网站上的数据包以“.com”,“。org”或“。net”结尾。

我试过了: dns包含“com”, ip.src_host == com, ip.src_host == com, http包含“com”。他们都没有正常工作。

1 个答案:

答案 0 :(得分:17)

假设它是http网络流量,请尝试http.host contains ".com"

更好的是,试试http.host matches "\.com$"

他们在网络主机上搜索时都不会要求DNS解析。

来自http://wiki.wireshark.org/DisplayFilters

The matches operator makes it possible to search for text in string fields 
and byte sequences using a regular expression, using Perl regular expression 
syntax. Note: Wireshark needs to be built with libpcre in order to be able to 
use the matches operator.