tlsstats

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2018 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

TLSStats

This Go software takes a pcap network capture as input, analyzes it and outputs some numbers about TLS version and used ciphers, e.g.:

145876 packets analyzed. Here are the results:

=== TLS versions supported by clients ===
TLS 1.2       1846
TLS 1.0       24

=== TLS versions chosen by server ===
TLS 1.2       1936

=== Ciphers supported by clients: ===
TLS_RSA_WITH_AES_128_CBC_SHA                        1866
TLS_RSA_WITH_AES_256_CBC_SHA                        1866
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA                1865
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA                1865
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA                  1865
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA                  1865
TLS_RSA_WITH_3DES_EDE_CBC_SHA                       1748
[...]

=== Ciphers chosen by server ===
TLS_DHE_RSA_WITH_AES_256_GCM_SHA384             1285
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384           418
TLS_DHE_RSA_WITH_AES_256_CBC_SHA                202
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256             26
TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256       3
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256           1
TLS_DHE_RSA_WITH_AES_256_CBC_SHA256             1

=== TLS alerts ===
BAD_RECORD_MAC               46
PROTOCOL_VERSION             25
[UNKNOWN ALERT 0x000A]       4
INTERNAL_ERROR               2

Usage

  1. Download or compile Tool. Downloads for Linux x86_64 available here
  2. Record a network dump using tcpdump
    E.g. for information on XMPP client connections (port 5222):
    tcpdump port 5222 -i eth0 -w tcpdump.pcap
  3. Feed the network dump into the analyzer:
    ./tlsstats -d tcpdump.pcap

Development

This is not considered a very stable, rock solid tool. If you'd like to improve the code and make it more reliable / robust, go ahead and submit a pull request! :-)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址