wireshark https抓包分析

wireshark SSL相关字段

参考链接:https://www.wireshark.org/docs/dfref/s/ssl.html

挑几个常用的,抛砖引玉:

FIELD NAMEDESCRIPTIONTYPEVERSIONS
ssl.handshake.typeHandshake Message TypeUnsigned integer, 1 byte1.0.0 to 2.4.5
ssl.handshake.versionVersionUnsigned integer, 2 bytes1.0.0 to 2.4.5
ssl.handshake.session_idSession IDSequence of bytes1.0.0 to 2.4.5
ssl.handshake.session_ticketSession TicketSequence of bytes1.8.0 to 2.4.5
ssl.handshake.randomRandomSequence of bytes2.0.0 to 2.4.5

在使用wirehark分析https 流量的时候,为了过滤出我们需要的数据流,选择恰当的过滤条件至关重要。

SSL handshake中的Client hello 与Server hello过滤:

ssl.handshake.type == 1 表示 client hello
ssl.handshake.type == 2 表示 server hello

##session ID的过滤
看到官方文档说session id的类型是 Sequence of bytes。于是过滤:

ssl.handshake.session_id == "5ab64426f2b4ec5e470e2dfa3f4373ddbec62f043b90fde1de33ca4800a9eacb"

遗憾的是,这样无法过滤。折腾了好久,勉强使用这种方法:

ssl.handshake.session_id contains "TeZ'" //  TeZ' 是ASCII 码值

这里写图片描述

如有更好的办法,多多指教!

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值