Wireshark过滤器设置

抓包过滤器

类型:host net port
方向:src dst
协议:ether ip tcp udp http ftp
逻辑运算符:&& || !

举例:
src host 192.168.1.1 && dst port 80
host 192.168.1.1 || host 192.168.1.2
!broadcast

过滤MAC地址案例:
ether host 74:2f:68:4a:58:05
ether src host 74:2f:68:4a:58:05
ether dst host 74:2f:68:4a:58:05

过滤IP地址案例:
host 192.168.1.1
src host 192.168.1.1
dst host 192.168.1.1

过滤端口案例:
port 80
! port 80
dst port 80
src port 80

过滤协议案例:
arp
icmp

综合过滤案例:
host 192.168.1.100 && port 8080

显示过滤器

比较运算符:== != > >= < <=
逻辑运算符:and or xor(有且仅有一个条件满足) not
IP地址:ip.addr ip.src ip.dst
端口过滤:tcp.port tcp.srcport tcp.flag.syn tcp.flag.ack
协议:arp ip icmp tcp udp bootp dns

过滤IP地址案例:
ip.addr == 192.168.1.1
ip.src == 192.168.1.1
ip.dst == 192.168.1.1
ip.src == 192.168.1.100 and ip.dst == 192.168.1.1

过滤端口案例:
tcp.port == 80
tcp.srcport == 80
tcp.dstport == 80
tcp.flag.syn == 1

过滤协议案例:
arp
tcp
udp
not http
not arp

综合过滤案例:
ip.src == 192.168.1.100 and tcp.dstport == 80
ip.addr == 192.168.1.1 and udp.port == 4000

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值