wireshark的使用


wireshark分为两个过滤器:捕捉过滤器  和  显示过滤器

捕捉过滤器的语法;


ProtocolDirectionHost(s)ValueLogical OperationsOther expression

Protocol:

可能值: ether, fddi, ip, arp, rarp, decnet, lat, sca, moprc, mopdl, tcp and udp.

Direction:

可能值: src, dst, src and dst, src or dst

Host(s):

可能值: net, port, host, portrange.

Logical Operations:
可能值:not, and, or.

参考官方文档如下:

https://wiki.wireshark.org/CaptureFilters



常见用法

tcp or udp or ip or icmp 
tcp port 80
tcp portrange 80-89
ip src host 10.0.2.1

一些特别的用法:
host www.baidu.com

proto \icmp  udp tcp ip
host 10.0.0.1
net 10.0.0.2
ip/ether multicast/broadcast
not broadcast/multicast


显示过滤器的用法:

Protocol.String1.String2 Comparation Operator Value Logical Operations Other expression

Protocol: tcp udp ip icmp ospf http oicq 

String :  addr src  dst  ack ........

Logical Operations : and or not 


这个地方就比较复杂了,我们可以在实际的软件中看到显示过滤的命令,从实际中来学这部分命令







ProtocolDirectionHost(s)ValueLogical OperationsOther expression
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值