diff --git a/hello_tls.py b/hello_tls.py index ce75f13..bcb0859 100644 --- a/hello_tls.py +++ b/hello_tls.py @@ -42,6 +42,71 @@ class CipherSuite(Enum): TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = b"\xcc\xa8" TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = b"\xcc\xa9" + # Old, old cipher suites. + TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA = b'\x00\x19' + TLS_DH_anon_EXPORT_WITH_RC4_40_MD5 = b'\x00\x17' + TLS_DH_anon_WITH_3DES_EDE_CBC_SHA = b'\x00\x1B' + TLS_DH_anon_WITH_AES_128_CBC_SHA = b'\x00\x34' + TLS_DH_anon_WITH_AES_128_CBC_SHA256 = b'\x00\x6C' + TLS_DH_anon_WITH_AES_256_CBC_SHA = b'\x00\x3A' + TLS_DH_anon_WITH_AES_256_CBC_SHA256 = b'\x00\x6D' + TLS_DH_anon_WITH_DES_CBC_SHA = b'\x00\x1A' + TLS_DH_anon_WITH_RC4_128_MD5 = b'\x00\x18' + TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA = b'\x00\x0B' + TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA = b'\x00\x0D' + TLS_DH_DSS_WITH_AES_128_CBC_SHA = b'\x00\x30' + TLS_DH_DSS_WITH_AES_128_CBC_SHA256 = b'\x00\x3E' + TLS_DH_DSS_WITH_AES_256_CBC_SHA = b'\x00\x36' + TLS_DH_DSS_WITH_AES_256_CBC_SHA256 = b'\x00\x68' + TLS_DH_DSS_WITH_DES_CBC_SHA = b'\x00\x0C' + TLS_DH_RSA_EXPORT_WITH_DES40_CBC_SHA = b'\x00\x0E' + TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA = b'\x00\x10' + TLS_DH_RSA_WITH_AES_128_CBC_SHA = b'\x00\x31' + TLS_DH_RSA_WITH_AES_128_CBC_SHA256 = b'\x00\x3F' + TLS_DH_RSA_WITH_AES_256_CBC_SHA = b'\x00\x37' + TLS_DH_RSA_WITH_AES_256_CBC_SHA256 = b'\x00\x69' + TLS_DH_RSA_WITH_DES_CBC_SHA = b'\x00\x0F' + TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA = b'\x00\x11' + TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = b'\x00\x13' + TLS_DHE_DSS_WITH_AES_128_CBC_SHA = b'\x00\x32' + TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 = b'\x00\x40' + TLS_DHE_DSS_WITH_AES_256_CBC_SHA = b'\x00\x38' + TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 = b'\x00\x6A' + TLS_DHE_DSS_WITH_DES_CBC_SHA = b'\x00\x12' + TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA = b'\x00\x14' + TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = b'\x00\x16' + TLS_DHE_RSA_WITH_AES_128_CBC_SHA = b'\x00\x33' + TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 = b'\x00\x67' + TLS_DHE_RSA_WITH_AES_256_CBC_SHA = b'\x00\x39' + TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 = b'\x00\x6B' + TLS_DHE_RSA_WITH_DES_CBC_SHA = b'\x00\x15' + TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5 = b'\x00\x29' + TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA = b'\x00\x26' + TLS_KRB5_EXPORT_WITH_RC2_CBC_40_MD5 = b'\x00\x2A' + TLS_KRB5_EXPORT_WITH_RC2_CBC_40_SHA = b'\x00\x27' + TLS_KRB5_EXPORT_WITH_RC4_40_MD5 = b'\x00\x2B' + TLS_KRB5_EXPORT_WITH_RC4_40_SHA = b'\x00\x28' + TLS_KRB5_WITH_3DES_EDE_CBC_MD5 = b'\x00\x23' + TLS_KRB5_WITH_3DES_EDE_CBC_SHA = b'\x00\x1F' + TLS_KRB5_WITH_DES_CBC_MD5 = b'\x00\x22' + TLS_KRB5_WITH_DES_CBC_SHA = b'\x00\x1E' + TLS_KRB5_WITH_IDEA_CBC_MD5 = b'\x00\x25' + TLS_KRB5_WITH_IDEA_CBC_SHA = b'\x00\x21' + TLS_KRB5_WITH_RC4_128_MD5 = b'\x00\x24' + TLS_KRB5_WITH_RC4_128_SHA = b'\x00\x20' + TLS_RSA_EXPORT_WITH_DES40_CBC_SHA = b'\x00\x08' + TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 = b'\x00\x06' + TLS_RSA_EXPORT_WITH_RC4_40_MD5 = b'\x00\x03' + TLS_RSA_WITH_AES_128_CBC_SHA256 = b'\x00\x3C' + TLS_RSA_WITH_AES_256_CBC_SHA256 = b'\x00\x3D' + TLS_RSA_WITH_DES_CBC_SHA = b'\x00\x09' + TLS_RSA_WITH_IDEA_CBC_SHA = b'\x00\x07' + TLS_RSA_WITH_NULL_MD5 = b'\x00\x01' + TLS_RSA_WITH_NULL_SHA = b'\x00\x02' + TLS_RSA_WITH_NULL_SHA256 = b'\x00\x3B' + TLS_RSA_WITH_RC4_128_MD5 = b'\x00\x04' + TLS_RSA_WITH_RC4_128_SHA = b'\x00\x05' + class AlertLevel(Enum): """ Different alert levels that can be sent by the server. """ WARNING = 1