Wireshark display filter is used to filter the captured data packets and only display the data packets that meet the filtering conditions. Display filters are usually more commonly used than capture filters. Usually no restrictions are placed in the packet capture process. Any packet is captured, and then specific data packets are analyzed through the display filter.
There are two ways to display filters, namely:
Dialog mode
Text expression mode
Dialog mode display
This method is very simple, you only need to move the mouse to select what you need Filter rules. Click Analysis in turn -> Display Filter Expression
The box on the left is all available protocol domains. Select a filtering protocol field, then select the relationship, and finally fill in the value, and a display filtering is completed.
Display filter for text expressions
The dialog box method is suitable for novices, but after playing wireshark for a while, you will become familiar with its display filter After setting the rules, you can use text expressions to operate. The following demonstrates some common display filters:
Protocol Limitation
is used to limit commonly used protocols, such as http, ssh, tcp, etc.
Only display http protocol
http
Display http or ssh protocol packets
http or ssh
Limited IP address and port
IP address and port are the most commonly used filtering conditions, but unlike the capture filter, the display filter uses ip.addr == ip address to limit.
Limit IP
ip.addr == 192.168.110.145
Limit the size of the data packet
frame.len > 128
Common comparison operators are:
greater than>
frame.len > 128 and ip.addr == 192.168.110.145
Common logical operators are:
tcp.port==80
Finally, common display filter expressions are given " The above is the detailed content of How to use the display filter of wireshark tool. For more information, please follow other related articles on the PHP Chinese website!!arp 排除arp数据包
http 只显示http数据包
!tcp.port==80 过滤http数据包
tcp.port==21 or tcp.port==22 ftp或ssh
tcp.flags.syn==1 具有syn标志位的tcp数据包
tcp.flags.rst==1 具有rst标志位的tcp数据包