分析SSL / TLSstream量

我想要分析和logging进出某个机器的SSL / TLSstream量。 具体来说,我想知道有多lessSSL / TLS连接,有多less连接使用TLSv1.2,多less使用旧的SSL / TLS版本,以及在分析过程中使用了哪些域。 我想要在实时stream量上完成这个分析,并且把它写入一个pcap文件。 有没有人知道一个可以轻松完成的工具?

我想我有一个可以满足您需求的工具: SSLAnalyzer ,它是PcapPlusPlus套件的一部分。 这个工具loggingSSL / TLSstream量并收集所有types的数据,包括你要求的是主机名,SSL / TLS版本和连接数。 你可以用下面的方法来使用它:

 ./SSLAnalyzer -i <IP_ADDRESS> 

PcapPlusPlus是多平台的,所以你可以在Win32,Linux(主要是在Ubuntu上以网站指定的方式testing)和Mac OS X(你没有指定你需要的操作系统)上进行编译。 输出结果如下所示:

 STATS SUMMARY ============= General stats -------------------- Sample time: 14.761 [Seconds] Number of SSL packets: 201 [Packets] Rate of SSL packets: 11.736 [Packets/sec] Number of SSL flows: 25 [Flows] Rate of SSL flows: 1.460 [Flows/sec] Total SSL data: 89632 [Bytes] Rate of SSL data: 5233.320 [Bytes/sec] Average packets per flow: 8.040 [Packets] Average data per flow: 3585.280 [Bytes] Client-hello message: 23 [Messages] Server-hello message: 23 [Messages] Number of SSL flows with successful handshake: 22 [Flows] Number of SSL flows ended with alert: 5 [Flows] SSL/TLS ports count -------------------- | SSL/TLS ports | Count | ------------------------- | 443 | 25 | ------------------------- SSL versions count -------------------- | SSL record version | Count | ---------------------------------------- | TLSv1.2 | 20 | | TLSv1.0 | 3 | ---------------------------------------- Client-hello versions count -------------------- | Client-hello version | Count | ---------------------------------------- | TLSv1.0 | 23 | ---------------------------------------- Cipher-suite count -------------------- | Cipher-suite | Count | -------------------------------------------------------------- | TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 | 19 | | TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 | 4 | -------------------------------------------------------------- Server-name count -------------------- | Hostname | Count | ---------------------------------------------------- | assets-cdn.github.com | 9 | | api.github.com | 4 | | collector.githubapp.com | 3 | | accounts.google.com | 2 | | github.com | 2 | | live.github.com | 2 | | www.gmail.com | 1 | ----------------------------------------------------