Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The use of filter for wireshark

2025-02-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Wireshark has two types of filters.

Capture filter

Display filter

Capture filter-Capture---- > Options---- > Capture Filter.

BPF qualifier (Berkeley Packet Filter)

Examples: host, net, port, src, dst, ether, ip, tcp, udp, http, ftp.

Operator: & & | |!

For example: dst host 200.0.0.1 & & tcp port 80

Port http but cannot be http.

Icmp [0] = = 8 indicates that the bit value with a packet offset of 0 is 8.

Icmp [0:2] = = 0x0301 indicates that the packet offset is 0 and continues two bytes, with a value of 0x0301.

Icmp packet format:

0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 9 0 1 2 3 4 5 6 7 8 9 0 1 + -+ | Type | Code | Checksum | +-+ | unused | | +-+ | Internet Header + 64 bits of Original Data Datagram | +- For more information, see http://www.ietf.org/rfc/rfc792.txtTCP Header Format 0 1 2 3 0 1 2 3 4 5. 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 7 8 9 0 1 +-+ | Source Port | Destination Port | +-+-+ -+ | Sequence Number | +-+- +-+ | Acknowledgment Number | +- +-+ | Data | | U | A | P | R | S | F | | Offset | Reserved | R | C | S | Y | I | Window | G | K | H | T | N | N | +-- +-+ | Checksum | Urgent Pointer | +-+ | Options | Padding | +-+ | data | +-+- For more information on +-+ TCP Header Format, see: http://www.ietf.org/rfc/rfc793.txt only captures packets marked as RST by tcp? Tcp [13] & 4 blocks 4, packet bit offset 13 bytes, what does "& 4" mean? Because RST represents the number 4 in this 13th byte [* (128) * (64) urg (32) ack (16) psh (8) rst (4) syn (2) fin (0)]. What about syn+ack? Tcp [13] = = 18. Display filter

Click expression to specify a detailed expression. Here are some common ones: ip.addr==192.168.1.1frame.len

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report