hechengjin 发表于 2015-10-9 16:02:28

wireshark

https://www.wireshark.org/#download

hechengjin 发表于 2016-6-16 14:43:09

本帖最后由 hechengjin 于 2016-6-16 14:45 编辑


过滤源ip、目的ip。在wireshark的过滤规则框Filter中输入过滤条件。如查找目的地址为192.168.101.8的包,ip.dst==192.168.101.8;查找源地址为ip.src==1.1.1.1;

[*]
[*]
[*]http://a.hiphotos.baidu.com/exp/w=500/sign=914979f78913632715edc233a18ea056/6159252dd42a2834b40dd32058b5c9ea15cebf76.jpg









端口过滤。如过滤80端口,在Filter中输入,tcp.port==80,这条规则是把源端口和目的端口为80的都过滤出来。使用tcp.dstport==80只过滤目的端口为80的,tcp.srcport==80只过滤源端口为80的包;


http://e.hiphotos.baidu.com/exp/w=500/sign=ba929b2dafaf2eddd4f149e9bd110102/35a85edf8db1cb1385cfd938de54564e92584b73.jpg









协议过滤比较简单,直接在Filter框中直接输入协议名即可,如过滤HTTP的协议;

[*]
[*]
[*]http://d.hiphotos.baidu.com/exp/w=500/sign=4841ca57520fd9f9a0175569152cd42b/caef76094b36acaf8d6473d77fd98d1001e99c11.jpg








http模式过滤。如过滤get包,http.request.method=="GET",过滤post包,http.request.method=="POST";

[*]
[*]
[*]http://c.hiphotos.baidu.com/exp/w=500/sign=4e8b8c7b37a85edffa8cfe23795509d8/f9dcd100baa1cd118031970bba12c8fcc3ce2d12.jpg










[*]连接符and的使用。过滤两种条件时,使用and连接,如过滤ip为192.168.101.8并且为http协议的,ip.src==192.168.101.8 and http。


http://g.hiphotos.baidu.com/exp/w=500/sign=2b1a44d1d2c8a786be2a4a0e5709c9c7/aa18972bd40735fae8c8aa929d510fb30f2408e4.jpg

Qter 发表于 2022-7-3 20:38:30

链接:https://pan.baidu.com/s/1cow8ybf7O00U2g4IgG80sg
提取码:uubt
页: [1]
查看完整版本: wireshark