http://blog.csdn.net/blue_jjw/article/details/8467885

一、IP过滤:包括来源IP或者目标IP等于某个IP
比如:ip.src addr==192.168.0.208  or ip.src addr eq 192.168.0.208 显示来源IP
        ip.dst addr==192.168.0.208  or ip.dst addr eq 192.168.0.208 显示目标IP

二、端口过滤:
比如:tcp.port eq 80 // 不管端口是来源的还是目标的都显示
        tcp.port == 80
        tcp.port eq 2722
        tcp.port eq 80 or udp.port eq 80
        tcp.dstport == 80 // 只显tcp协议的目标端口80
        tcp.srcport == 80 // 只显tcp协议的来源端口80

过滤端口范围
tcp.port >= 1 and tcp.port <= 80

三、协议过滤:tcp
udp
arp
icmp
http
smtp
ftp
dns
msnms
ip
ssl
等等
排除ssl包,如!ssl 或者  not ssl

四、包长度过滤:
比如:
udp.length == 26 这个长度是指udp本身固定长度8加上udp下面那块数据包之和
tcp.len >= 7  指的是ip数据包(tcp下面那块数据),不包括tcp本身
ip.len == 94 除了以太网头固定长度14,其它都算是ip.len,即从ip本身到最后
frame.len == 119 整个数据包长度,从eth开始到最后

五、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: ”
一定包含如下
Content-Type:

六、连接符 and / or

七、表达式:!(arp.src==192.168.1.1) and !(arp.dst.proto_ipv4==192.168.1.243)

最新文章

  1. UVALive 4870 Roller Coaster --01背包
  2. 加载音频Audio
  3. LaTeX字体相关
  4. Android反编译工具的使用-Android Killer
  5. stat file 查看文件的 最新的被访问时间 最近的修改时间 最近的状态改变时间
  6. HTML回顾
  7. Careercup - Google面试题 - 6407924087783424
  8. PHP的基础计算器
  9. 浅谈iOS中MVVM的架构设计与团队协作
  10. day2_python学习笔记_chapter4_标准类型和内建函数
  11. JS多维数组转一维
  12. android学习4——View的长宽问题
  13. 基于HTTP协议的下载功能实现
  14. 计算机中RAM和ROM
  15. labellmg的使用
  16. [android] 采用pull解析xml文件
  17. AOJ1370: Hidden Anagrams(hash)
  18. CSS实现三列布局
  19. 3.3Python数据处理篇之Numpy系列(三)---数组的索引与切片
  20. 07 - JavaSE之容器

热门文章

  1. max_length 属性
  2. ECS运维:操作系统有异常?诊断日志来帮忙!
  3. php max()函数 语法
  4. mysql8.0.15出错
  5. VMware安装MAC OS
  6. html标签内部简单加js 一维数组求最大值 最小值两个值位置和数字金字塔图形
  7. python rpy2,tkinter安装问题解决
  8. 测开之路四十三:ajax请求
  9. ucenter 整合同步登录的内部实现原理
  10. Cocos2d Box2D之静态刚体