[学习]WireShark 的过滤功能

本文详细介绍Wireshark中各种高级过滤方法,包括协议、IP地址、端口、MAC地址及HTTP方法过滤,助您精准捕获网络数据包。

1. 打开 wireShark 过滤显示 协议

比如显示arp协议

过滤栏输入arp即可

支持的协议类型

TCP
UDP
HTTP
FTP
ICMP
SMTP
等等

2. 过滤ip地址

ip.addr eq 10.24.13.6

or

ip.addr == 10.24.13.6

或者是区分 源地址或者是目标地址

ip.src == 10.24.13.6
或者目标地址
ip.dst eq  10.24.13.6

 

3. 过滤端口 以及增加 and 条件等.

tcp.port == 80 || ip.src eq 10.24.13.97

 

 4. mac地址过滤

eth.dst

eth.src

eth.addr 

5. http 方法过滤

http.request.method == "GET"
http.request.method == "POST"
http.request.uri == "/img/logo-edu.gif"
http contains "GET"
http contains "HTTP/1."

// GET包
http.request.method == "GET" && http contains "Host: "
http.request.method == "GET" && http contains "User-Agent: "
// POST包
http.request.method == "POST" && http contains "Host: "
http.request.method == "POST" && http contains "User-Agent: "
// 响应包
http contains "HTTP/1.1 200 OK" && http contains "Content-Type: "
http contains "HTTP/1.0 200 OK" && http contains "Content-Type: "

 

转载于:https://www.cnblogs.com/jinanxiaolaohu/p/9860581.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值