使用Wireshark抓包分析HTTPS报文-TLSv1.2单向

2019-11-14  本文已影响0人  StarDustMrsu

准备工作

1.获取本机器的IP。
[root@localhost ~]# ip addr | grep global | awk '{print $2}'
192.168.113.128/24

2.使用nslookup获取目标域名的IP信息。
[root@localhost ~]# nslookup www.baidu.com
Server:     192.168.113.2
Address:    192.168.113.2#53

Non-authoritative answer:
www.baidu.com   canonical name = www.a.shifen.com.
Name:   www.a.shifen.com
Address: 180.101.49.11
Name:   www.a.shifen.com
Address: 180.101.49.12

3.使用curl请求同时配合Wireshark进行抓包。
[root@localhost ~]# curl https://www.baidu.com
<!DOCTYPE html>......

抓包分析

HTTPS-DH基本通信过程.jpg
这是一个基于Diffie-Hellman的握手过程。
上一篇 下一篇

猜你喜欢

热点阅读