"Go" Wireshark Filtering rules filter packets

Source: Internet
Author: User

Http://blog.sina.com.cn/s/blog_60a65db5010135ib.html

IP filtering: Include source IP or destination IP equals an IP

For example: Ip.src addr==192.168.0.208 or ip.src addr eq 192.168.0.208 Show Source IP
IP.DST addr==192.168.0.208 or ip.dst addr eq 192.168.0.208 Display Destination IP

Second, port filtering:
For example: Tcp.port EQ 80//Whether the port is source or target is displayed
Tcp.port = = 80
Tcp.port eq 2722
Tcp.port eq or udp.port eq 80
Tcp.dstport = = 80//target port 80 for TCP protocol only
Tcp.srcport = = 80//Explicit TCP protocol Source port 80
Filter Port range
Tcp.port >= 1 and Tcp.port <= 80

Third, protocol filtering: TCP
Udp
Cr2
Icmp
http
Smtp
Ftp
Dns
Msnms
Ip
Ssl
Wait a minute
Exclude SSL packages, such as!SSL or not SSL

Four, packet length filter:
Like what:
Udp.length = = 26 This length refers to the UDP itself fixed length 8 plus UDP The sum of the packet
Tcp.len >= 7 refers to IP packets (The block of data under TCP), not including TCP itself
Ip.len = = 94 In addition to the Ethernet head fixed length 14, the other is Ip.len, that is, from the IP itself to the last
Frame.len = = 119 entire packet length, starting from ETH to the last

Five, HTTP mode filtering:
Example:
Http.request.method = = "GET"
Http.request.method = = "POST"
Http.request.uri = = "/img/logo-edu.gif"
HTTP contains "GET"
HTTP contains "HTTP/1."
Get package contains a header field
Http.request.method = = "GET" && http contains "Host:"
Http.request.method = = "GET" && http contains "User-agent:"
The post package contains a header field
Http.request.method = = "POST" && http contains "Host:"
Http.request.method = = "POST" && http contains "User-agent:"
The response package contains a header field
HTTP contains "http/1.1 OK" && http contains "Content-type:"
HTTP contains "http/1.0 OK" && http contains "Content-type:"

Six, connector and/or


Seven, expression:! (arp.src==192.168.1.1) and! (arp.dst.proto_ipv4==192.168.1.243)


Eight, Expert.message is used to filter info information, mainly with contains to use

"Go" Wireshark Filtering rules filter packets

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.