wireshark抓包比较http与https头信息

软件准备,wireshark

1.打开,观察一会儿,看看哪些端口网络有活跃
wireshark抓包比较http与https头信息

2.我现在要测外网网络,我这里是WLAN接口

wireshark抓包比较http与https头信息

双击WANL直接开始

wireshark抓包比较http与https头信息

准备一个http协议的网站

这里准备:www.runoob.com

输入过滤网站,记得回车

http.host == www.runoob.com

wireshark抓包比较http与https头信息
刷新网址
wireshark抓包比较http与https头信息
查看http中的 request 与 response,执行下面操作

wireshark抓包比较http与https头信息

可以看出是明文操作
wireshark抓包比较http与https头信息

准备一个https协议的网站

这里准备
www.baeldung.com

这里和之前有点操作不一致,需要重新打开wireshark,且输入命令

host www.baeldung.com

wireshark抓包比较http与https头信息

刷新网址
https://www.baeldung.com/apache-commons-chain

wireshark抓包比较http与https头信息
出现TLS协议,也就是https里面使用的协议
wireshark抓包比较http与https头信息
执行以下操作
wireshark抓包比较http与https头信息
可以看出https的所有内容均为加密
wireshark抓包比较http与https头信息

从全局看一下https完整的一次请求
执行以下命令
wireshark抓包比较http与https头信息
如下,都是与https中的443端口交互
wireshark抓包比较http与https头信息