Python scapy解析 HTTPS 报文

安装scapy 与 TLS模块

1
pip install scapy-ssl_tls

Python scapy 程序

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
#!/bin/python
# -*- coding: UTF-8 -*-

import sys
import time
import socket

from scapy_ssl_tls.ssl_tls import TLS
from scapy.all import *
from ssl_tls_registry import TLS_CONTENTTYPE_REGISTRY
from ssl_tls_registry import TLS_HANDSHAKETYPE_REGISTRY
from ssl_tls_registry import TLS_COMPRESSION_METHOD_IDENTIFIERS
from ssl_tls_registry import EXTENSIONTYPE_VALUES
from ssl_tls_registry import TLS_EC_POINT_FORMAT_REGISTRY
from ssl_tls_registry import TLS_SUPPORTED_GROUPS_REGISTRY
from ssl_tls_registry import TLS_CIPHER_SUITE_REGISTRY

TBL_FILE = "HTTPSFileHeader.tbl"
count = 0

TLS_VERSIONS = {
# SSL
0x0002: "SSL_2_0",
0x0300: "SSL_3_0",
# TLS:
0x0301: "TLS_1_0",
0x0302: "TLS_1_1",
0x0303: "TLS_1_2",
0x0304: "TLS_1_3",
# DTLS
0x0100: "PROTOCOL_DTLS_1_0_OPENSSL_PRE_0_9_8f",
0x7f10: "TLS_1_3_DRAFT_16",
0x7f12: "TLS_1_3_DRAFT_18",
0xfeff: "DTLS_1_0",
0xfefd: "DTLS_1_1",
}

TLS_SIGNATURE_SCHEMES = {
# RSA PKCS1v1.5 algorithms
0x0201: "rsa_pkcs1_sha1",
0x0401: "rsa_pkcs1_sha256",
0x0501: "rsa_pkcs1_sha384",
0x0601: "rsa_pkcs1_sha512",
# ECDSA algorithms
0x0403: "ecdsa_secp256r1_sha256",
0x0503: "ecdsa_secp384r1_sha384",
0x0603: "ecdsa_secp521r1_sha512",
# RSA PSS algorithms
0x0804: "rsa_pss_sha256",
0x0805: "rsa_pss_sha384",
0x0806: "rsa_pss_sha512",
# EDDSA algorithms
0x0807: "ed25519",
0x0808: "ed448",

# Signature Algorithm Extension
0x0202:"dsa_sha1_RESERVED",
0x0203:"ecdsa_sha1",
0x0402:"dsa_sha256_RESERVED",
0x0502:"dsa_sha384_RESERVED",
0x0602:"dsa_sha512_RESERVED",
}

def timestamp_datetime(value):
format = '%Y-%m-%d %H:%M:%S'
# value为传入的值为时间戳(整形),如:1332888820
value = time.localtime(value)
## 经过localtime转换后变成
## time.struct_time(tm_year=2012, tm_mon=3, tm_mday=28, tm_hour=6, tm_min=53, tm_sec=40, tm_wday=2, tm_yday=88, tm_isdst=0)
# 最后再经过strftime函数转换为正常日期格式。
dt = time.strftime(format, value)
return dt

def datetime_timestamp(dt):
#dt为字符串
#中间过程,一般都需要将字符串转化为时间数组
time.strptime(dt, '%Y-%m-%d %H:%M:%S')
## time.struct_time(tm_year=2012, tm_mon=3, tm_mday=28, tm_hour=6, tm_min=53, tm_sec=40, tm_wday=2, tm_yday=88, tm_isdst=-1)
#将"2012-03-28 06:53:40"转化为时间戳
s = time.mktime(time.strptime(dt, '%Y-%m-%d %H:%M:%S'))
return int(s)

FileHeadFlags = 0
def TLS_OutPutTLSFileHead(HTTPSFileContent):
HandFileTbl = open(TBL_FILE, 'w')
for k, v in HTTPSFileContent.items():
HandFileTbl.write(k)
HandFileTbl.write("|")

HandFileTbl.write("\n")
HandFileTbl.close()
global FileHeadFlags
FileHeadFlags = 1

def TLS_OutPutTLSFile(HTTPSFileContent):
global FileHeadFlags
if FileHeadFlags == 0:
TLS_OutPutTLSFileHead(HTTPSFileContent)

HandFileTbl = open(TBL_FILE, 'a+')
for k, v in HTTPSFileContent.items():
HandFileTbl.write("\"")
#print type(v)
v = str(v)
#print "k=",k ,"v=", v
HandFileTbl.write(v)
HandFileTbl.write("\"")
HandFileTbl.write("|")

HandFileTbl.write("\n")
HandFileTbl.close()
global FileHeadFlags
FileHeadFlags = 1

def TLS_GetTCPIPInfo(HTTPSFileContent, pkt):
HTTPSFileContent["IPSrc"] = pkt['IP'].src
HTTPSFileContent["IPDst"] = pkt['IP'].dst
HTTPSFileContent["TCPSrcPort"] = pkt['TCP'].dport
HTTPSFileContent["TCPDstPort"] = pkt['TCP'].sport

def TLS_GetTLSInfo(HTTPSFileContent, TLSPkt):
HTTPSFileContent["TLSContentType"] = TLS_CONTENTTYPE_REGISTRY[TLSPkt.content_type]
HTTPSFileContent["TLSVersion"] = TLS_VERSIONS[TLSPkt.version]
#HTTPSFileContent["TLSLength"] = TLSPkt.length

def TLS_GetClienntHello(HTTPSFileContent, TLSPkt):
#print TLSPkt.show()
HTTPSFileContent['HandshakeType'] = TLS_HANDSHAKETYPE_REGISTRY[TLSPkt.handshakes[0].type]
HTTPSFileContent['HandshakeVersion'] = TLS_VERSIONS[TLSPkt.version]
HTTPSFileContent['HandshakeGmtUnixTime'] = timestamp_datetime(TLSPkt.handshakes[0].gmt_unix_time)

RandomBytesStr = '' #解决 RandomBytes 乱码问题
for chr in TLSPkt.handshakes[0].random_bytes:
RandomBytesStr = RandomBytesStr + "0x" + "%02x" % ord(chr) + " "
HTTPSFileContent['HandshakeRandomBytes'] = RandomBytesStr

SessionIdStr = '' #解决 SessionId 乱码问题
for chr in TLSPkt.handshakes[0].session_id:
SessionIdStr = SessionIdStr + "0x" + "%02x" % ord(chr) + " "
HTTPSFileContent['HandshakeSessionId'] = SessionIdStr

csStr = '' #遍历客户端支持的解密列表
for cs in TLSPkt.handshakes[0].cipher_suites:
if cs in TLS_CIPHER_SUITE_REGISTRY.keys(): #保护性编程, 即使不支持当前 CIPHER_SUITE, 但不至于程序崩溃
csStr = TLS_CIPHER_SUITE_REGISTRY[cs] + ", " + csStr
HTTPSFileContent['HandshakeCipherSuites'] = csStr

for extensions in TLSPkt.handshakes[0].extensions: # Handshake extensions 有很多TLV
if extensions.type not in EXTENSIONTYPE_VALUES:
print "Unknow ssl.handshake.extension.type: ", hex(extensions.type), "Length:", extensions.length
continue

if "server_name" == EXTENSIONTYPE_VALUES[extensions.type]:
for host_name in extensions.server_names:
if 0 == host_name.type and host_name.length > 0 :
HTTPSFileContent['ExtensionServerNames'] = host_name.data
continue

if "ec_point_formats" == EXTENSIONTYPE_VALUES[extensions.type]:
ECStr = ''
for ec in extensions.ec_point_formats:
ECStr = TLS_EC_POINT_FORMAT_REGISTRY[ec] + ", " + ECStr

HTTPSFileContent['ExtensionEcPointFormats'] = ECStr
continue

if "supported_groups" == EXTENSIONTYPE_VALUES[extensions.type]:
sgStr = ''
for sg in extensions.named_group_list:
if sg in TLS_SUPPORTED_GROUPS_REGISTRY.keys():
sgStr = TLS_SUPPORTED_GROUPS_REGISTRY[sg] + ", " + sgStr

HTTPSFileContent['ExtensionSupportedGroups'] = sgStr
continue

if "signature_algorithms" == EXTENSIONTYPE_VALUES[extensions.type]:
saStr = ''
for sa in extensions.algs:
if sa in TLS_SIGNATURE_SCHEMES.keys():
saStr = TLS_SIGNATURE_SCHEMES[sa] + ", " + saStr
HTTPSFileContent['ExtensionSignatureAlgorithms'] = saStr
continue
#以下 extensions.type 暂未观察出价值数据,忽略
#0x1a1a, 0x2a2a, 0x2b, 0x2d, 0x33, 0x3a3a, 0x4a4a, 0x5a5a, 0x6a6a, 0x7550, 0x7a7a, 0x8a8a, 0x9a9a, 0xa0a, 0xaaaa, 0xbaba, 0xcaca, 0xdada, 0xeaea, 0xfafa

def TLS_GetServerHello(HTTPSFileContent, TLSPkt):
HTTPSFileContent['HandshakeType'] = TLS_HANDSHAKETYPE_REGISTRY[TLSPkt.handshakes[0].type]
HTTPSFileContent['HandshakeVersion'] = TLS_VERSIONS[TLSPkt.version]

HTTPSFileContent['HandshakeType'] = TLS_HANDSHAKETYPE_REGISTRY[TLSPkt.handshakes[0].type]
HTTPSFileContent['HandshakeVersion'] = TLS_VERSIONS[TLSPkt.handshakes[0].version]
HTTPSFileContent['HandshakeCipherSuites'] = TLS_CIPHER_SUITE_REGISTRY[TLSPkt.handshakes[0].cipher_suite]

RandomBytesStr = '' #解决 RandomBytes 乱码问题
for chr in TLSPkt.handshakes[0].random_bytes:
RandomBytesStr = RandomBytesStr + "0x" + "%02x" % ord(chr) + " "
HTTPSFileContent['HandshakeRandomBytes'] = RandomBytesStr

SessionIdStr = '' #解决 SessionId 乱码问题
for chr in TLSPkt.handshakes[0].session_id:
SessionIdStr = SessionIdStr + "0x" + "%02x" % ord(chr) + " "
HTTPSFileContent['HandshakeSessionId'] = SessionIdStr

for extensions in TLSPkt.handshakes[0].extensions: # Handshake extensions 有很多TLV
if extensions.type not in EXTENSIONTYPE_VALUES:
print "Unknow ssl.handshake.extension.type: ", hex(extensions.type), "Length:", extensions.length
continue

if "ec_point_formats" == EXTENSIONTYPE_VALUES[extensions.type]:
ECStr = ''
for ec in extensions.ec_point_formats:
ECStr = TLS_EC_POINT_FORMAT_REGISTRY[ec] + ", " + ECStr

HTTPSFileContent['ExtensionEcPointFormats'] = ECStr
continue
pass

def SSL_info(FileName):
pkt = rdpcap(FileName)
for i in range(0, len(pkt)):

if pkt[i].haslayer("TLSClientHello") or pkt[i].haslayer("TLSServerHello"):
pass
else:
continue

HTTPSFileContent = {
#TCP IP Layer
"IPSrc":"",
'IPDst':"",
'TCPSrcPort':"",
'TCPDstPort':"",
#SSL Layer
'TLSContentType':"",
'TLSVersion':"",
'TLSLength':"",
'HandshakeType':"",
#HandshakeContent
'HandshakeType':"",
'HandshakeLength':"",
'HandshakeVersion':"",
'HandshakeGmtUnixTime':"",
'HandshakeRandomBytes':"",
'HandshakeSessionId':"",
'HandshakeCipherSuites':"",
'HandshakeCompressionMethods':"",
'ExtensionServerNames':"",
'ExtensionEcPointFormats':"",
'ExtensionSupportedGroups':"",
'ExtensionSignatureAlgorithms':"",
}

TLS_GetTCPIPInfo(HTTPSFileContent, pkt[i])
TLS_GetTLSInfo(HTTPSFileContent, pkt[i].records[0])

if pkt[i].haslayer("TLSClientHello"):
TLS_GetClienntHello(HTTPSFileContent, pkt[i].records[0])

if pkt[i].haslayer("TLSServerHello"):
TLS_GetServerHello(HTTPSFileContent, pkt[i].records[0])

print HTTPSFileContent #写tbl文件
TLS_OutPutTLSFile(HTTPSFileContent)
print ""

def main():
# cat HTTPSFileHeader.tbl | column -t -s "|" | vim - -c "set nowrap"
#FileName = 'HTTPS.www.baidu.com.pcap'
#FileName = 'HTTPS_TEST.pcap'
FileName = 'https.multi.pcap'
SSL_info(FileName)

if __name__ == '__main__':
main()

需要包含的模块文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
# -*- coding: UTF-8 -*-
# Generator: fetch_iana_tls_registry.py
# date: 2018-02-12
# sources: https://www.iana.org/assignments/tls-parameters/tls-parameters.xml
# WARNING! THIS FILE IS AUTOGENERATED, DO NOT EDIT!

TLS_CLIENTCERTIFICATETYPE_IDENTIFIERS_REGISTRY = {
0x00: 'Unassigned',
0x01: 'rsa_sign',
0x02: 'dss_sign',
0x03: 'rsa_fixed_dh',
0x04: 'dss_fixed_dh',
0x05: 'rsa_ephemeral_dh_RESERVED',
0x06: 'dss_ephemeral_dh_RESERVED',
0x14: 'fortezza_dms_RESERVED',
0x40: 'ecdsa_sign',
0x41: 'rsa_fixed_ecdh',
0x42: 'ecdsa_fixed_ecdh',
}
TLS_CIPHER_SUITE_REGISTRY = {
0x0000: 'NULL_WITH_NULL_NULL',
0x0001: 'RSA_WITH_NULL_MD5',
0x0002: 'RSA_WITH_NULL_SHA',
0x0003: 'RSA_EXPORT_WITH_RC4_40_MD5',
0x0004: 'RSA_WITH_RC4_128_MD5',
0x0005: 'RSA_WITH_RC4_128_SHA',
0x0006: 'RSA_EXPORT_WITH_RC2_CBC_40_MD5',
0x0007: 'RSA_WITH_IDEA_CBC_SHA',
0x0008: 'RSA_EXPORT_WITH_DES40_CBC_SHA',
0x0009: 'RSA_WITH_DES_CBC_SHA',
0x000a: 'RSA_WITH_3DES_EDE_CBC_SHA',
0x000b: 'DH_DSS_EXPORT_WITH_DES40_CBC_SHA',
0x000c: 'DH_DSS_WITH_DES_CBC_SHA',
0x000d: 'DH_DSS_WITH_3DES_EDE_CBC_SHA',
0x000e: 'DH_RSA_EXPORT_WITH_DES40_CBC_SHA',
0x000f: 'DH_RSA_WITH_DES_CBC_SHA',
0x0010: 'DH_RSA_WITH_3DES_EDE_CBC_SHA',
0x0011: 'DHE_DSS_EXPORT_WITH_DES40_CBC_SHA',
0x0012: 'DHE_DSS_WITH_DES_CBC_SHA',
0x0013: 'DHE_DSS_WITH_3DES_EDE_CBC_SHA',
0x0014: 'DHE_RSA_EXPORT_WITH_DES40_CBC_SHA',
0x0015: 'DHE_RSA_WITH_DES_CBC_SHA',
0x0016: 'DHE_RSA_WITH_3DES_EDE_CBC_SHA',
0x0017: 'DH_anon_EXPORT_WITH_RC4_40_MD5',
0x0018: 'DH_anon_WITH_RC4_128_MD5',
0x0019: 'DH_anon_EXPORT_WITH_DES40_CBC_SHA',
0x001a: 'DH_anon_WITH_DES_CBC_SHA',
0x001b: 'DH_anon_WITH_3DES_EDE_CBC_SHA',
0x001e: 'KRB5_WITH_DES_CBC_SHA',
0x001f: 'KRB5_WITH_3DES_EDE_CBC_SHA',
0x0020: 'KRB5_WITH_RC4_128_SHA',
0x0021: 'KRB5_WITH_IDEA_CBC_SHA',
0x0022: 'KRB5_WITH_DES_CBC_MD5',
0x0023: 'KRB5_WITH_3DES_EDE_CBC_MD5',
0x0024: 'KRB5_WITH_RC4_128_MD5',
0x0025: 'KRB5_WITH_IDEA_CBC_MD5',
0x0026: 'KRB5_EXPORT_WITH_DES_CBC_40_SHA',
0x0027: 'KRB5_EXPORT_WITH_RC2_CBC_40_SHA',
0x0028: 'KRB5_EXPORT_WITH_RC4_40_SHA',
0x0029: 'KRB5_EXPORT_WITH_DES_CBC_40_MD5',
0x002a: 'KRB5_EXPORT_WITH_RC2_CBC_40_MD5',
0x002b: 'KRB5_EXPORT_WITH_RC4_40_MD5',
0x002c: 'PSK_WITH_NULL_SHA',
0x002d: 'DHE_PSK_WITH_NULL_SHA',
0x002e: 'RSA_PSK_WITH_NULL_SHA',
0x002f: 'RSA_WITH_AES_128_CBC_SHA',
0x0030: 'DH_DSS_WITH_AES_128_CBC_SHA',
0x0031: 'DH_RSA_WITH_AES_128_CBC_SHA',
0x0032: 'DHE_DSS_WITH_AES_128_CBC_SHA',
0x0033: 'DHE_RSA_WITH_AES_128_CBC_SHA',
0x0034: 'DH_anon_WITH_AES_128_CBC_SHA',
0x0035: 'RSA_WITH_AES_256_CBC_SHA',
0x0036: 'DH_DSS_WITH_AES_256_CBC_SHA',
0x0037: 'DH_RSA_WITH_AES_256_CBC_SHA',
0x0038: 'DHE_DSS_WITH_AES_256_CBC_SHA',
0x0039: 'DHE_RSA_WITH_AES_256_CBC_SHA',
0x003a: 'DH_anon_WITH_AES_256_CBC_SHA',
0x003b: 'RSA_WITH_NULL_SHA256',
0x003c: 'RSA_WITH_AES_128_CBC_SHA256',
0x003d: 'RSA_WITH_AES_256_CBC_SHA256',
0x003e: 'DH_DSS_WITH_AES_128_CBC_SHA256',
0x003f: 'DH_RSA_WITH_AES_128_CBC_SHA256',
0x0040: 'DHE_DSS_WITH_AES_128_CBC_SHA256',
0x0041: 'RSA_WITH_CAMELLIA_128_CBC_SHA',
0x0042: 'DH_DSS_WITH_CAMELLIA_128_CBC_SHA',
0x0043: 'DH_RSA_WITH_CAMELLIA_128_CBC_SHA',
0x0044: 'DHE_DSS_WITH_CAMELLIA_128_CBC_SHA',
0x0045: 'DHE_RSA_WITH_CAMELLIA_128_CBC_SHA',
0x0046: 'DH_anon_WITH_CAMELLIA_128_CBC_SHA',
0x0067: 'DHE_RSA_WITH_AES_128_CBC_SHA256',
0x0068: 'DH_DSS_WITH_AES_256_CBC_SHA256',
0x0069: 'DH_RSA_WITH_AES_256_CBC_SHA256',
0x006a: 'DHE_DSS_WITH_AES_256_CBC_SHA256',
0x006b: 'DHE_RSA_WITH_AES_256_CBC_SHA256',
0x006c: 'DH_anon_WITH_AES_128_CBC_SHA256',
0x006d: 'DH_anon_WITH_AES_256_CBC_SHA256',
0x0084: 'RSA_WITH_CAMELLIA_256_CBC_SHA',
0x0085: 'DH_DSS_WITH_CAMELLIA_256_CBC_SHA',
0x0086: 'DH_RSA_WITH_CAMELLIA_256_CBC_SHA',
0x0087: 'DHE_DSS_WITH_CAMELLIA_256_CBC_SHA',
0x0088: 'DHE_RSA_WITH_CAMELLIA_256_CBC_SHA',
0x0089: 'DH_anon_WITH_CAMELLIA_256_CBC_SHA',
0x008a: 'PSK_WITH_RC4_128_SHA',
0x008b: 'PSK_WITH_3DES_EDE_CBC_SHA',
0x008c: 'PSK_WITH_AES_128_CBC_SHA',
0x008d: 'PSK_WITH_AES_256_CBC_SHA',
0x008e: 'DHE_PSK_WITH_RC4_128_SHA',
0x008f: 'DHE_PSK_WITH_3DES_EDE_CBC_SHA',
0x0090: 'DHE_PSK_WITH_AES_128_CBC_SHA',
0x0091: 'DHE_PSK_WITH_AES_256_CBC_SHA',
0x0092: 'RSA_PSK_WITH_RC4_128_SHA',
0x0093: 'RSA_PSK_WITH_3DES_EDE_CBC_SHA',
0x0094: 'RSA_PSK_WITH_AES_128_CBC_SHA',
0x0095: 'RSA_PSK_WITH_AES_256_CBC_SHA',
0x0096: 'RSA_WITH_SEED_CBC_SHA',
0x0097: 'DH_DSS_WITH_SEED_CBC_SHA',
0x0098: 'DH_RSA_WITH_SEED_CBC_SHA',
0x0099: 'DHE_DSS_WITH_SEED_CBC_SHA',
0x009a: 'DHE_RSA_WITH_SEED_CBC_SHA',
0x009b: 'DH_anon_WITH_SEED_CBC_SHA',
0x009c: 'RSA_WITH_AES_128_GCM_SHA256',
0x009d: 'RSA_WITH_AES_256_GCM_SHA384',
0x009e: 'DHE_RSA_WITH_AES_128_GCM_SHA256',
0x009f: 'DHE_RSA_WITH_AES_256_GCM_SHA384',
0x00a0: 'DH_RSA_WITH_AES_128_GCM_SHA256',
0x00a1: 'DH_RSA_WITH_AES_256_GCM_SHA384',
0x00a2: 'DHE_DSS_WITH_AES_128_GCM_SHA256',
0x00a3: 'DHE_DSS_WITH_AES_256_GCM_SHA384',
0x00a4: 'DH_DSS_WITH_AES_128_GCM_SHA256',
0x00a5: 'DH_DSS_WITH_AES_256_GCM_SHA384',
0x00a6: 'DH_anon_WITH_AES_128_GCM_SHA256',
0x00a7: 'DH_anon_WITH_AES_256_GCM_SHA384',
0x00a8: 'PSK_WITH_AES_128_GCM_SHA256',
0x00a9: 'PSK_WITH_AES_256_GCM_SHA384',
0x00aa: 'DHE_PSK_WITH_AES_128_GCM_SHA256',
0x00ab: 'DHE_PSK_WITH_AES_256_GCM_SHA384',
0x00ac: 'RSA_PSK_WITH_AES_128_GCM_SHA256',
0x00ad: 'RSA_PSK_WITH_AES_256_GCM_SHA384',
0x00ae: 'PSK_WITH_AES_128_CBC_SHA256',
0x00af: 'PSK_WITH_AES_256_CBC_SHA384',
0x00b0: 'PSK_WITH_NULL_SHA256',
0x00b1: 'PSK_WITH_NULL_SHA384',
0x00b2: 'DHE_PSK_WITH_AES_128_CBC_SHA256',
0x00b3: 'DHE_PSK_WITH_AES_256_CBC_SHA384',
0x00b4: 'DHE_PSK_WITH_NULL_SHA256',
0x00b5: 'DHE_PSK_WITH_NULL_SHA384',
0x00b6: 'RSA_PSK_WITH_AES_128_CBC_SHA256',
0x00b7: 'RSA_PSK_WITH_AES_256_CBC_SHA384',
0x00b8: 'RSA_PSK_WITH_NULL_SHA256',
0x00b9: 'RSA_PSK_WITH_NULL_SHA384',
0x00ba: 'RSA_WITH_CAMELLIA_128_CBC_SHA256',
0x00bb: 'DH_DSS_WITH_CAMELLIA_128_CBC_SHA256',
0x00bc: 'DH_RSA_WITH_CAMELLIA_128_CBC_SHA256',
0x00bd: 'DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256',
0x00be: 'DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256',
0x00bf: 'DH_anon_WITH_CAMELLIA_128_CBC_SHA256',
0x00c0: 'RSA_WITH_CAMELLIA_256_CBC_SHA256',
0x00c1: 'DH_DSS_WITH_CAMELLIA_256_CBC_SHA256',
0x00c2: 'DH_RSA_WITH_CAMELLIA_256_CBC_SHA256',
0x00c3: 'DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256',
0x00c4: 'DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256',
0x00c5: 'DH_anon_WITH_CAMELLIA_256_CBC_SHA256',
0x00ff: 'EMPTY_RENEGOTIATION_INFO_SCSV',
0x5600: 'FALLBACK_SCSV',
0xc001: 'ECDH_ECDSA_WITH_NULL_SHA',
0xc002: 'ECDH_ECDSA_WITH_RC4_128_SHA',
0xc003: 'ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA',
0xc004: 'ECDH_ECDSA_WITH_AES_128_CBC_SHA',
0xc005: 'ECDH_ECDSA_WITH_AES_256_CBC_SHA',
0xc006: 'ECDHE_ECDSA_WITH_NULL_SHA',
0xc007: 'ECDHE_ECDSA_WITH_RC4_128_SHA',
0xc008: 'ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA',
0xc009: 'ECDHE_ECDSA_WITH_AES_128_CBC_SHA',
0xc00a: 'ECDHE_ECDSA_WITH_AES_256_CBC_SHA',
0xc00b: 'ECDH_RSA_WITH_NULL_SHA',
0xc00c: 'ECDH_RSA_WITH_RC4_128_SHA',
0xc00d: 'ECDH_RSA_WITH_3DES_EDE_CBC_SHA',
0xc00e: 'ECDH_RSA_WITH_AES_128_CBC_SHA',
0xc00f: 'ECDH_RSA_WITH_AES_256_CBC_SHA',
0xc010: 'ECDHE_RSA_WITH_NULL_SHA',
0xc011: 'ECDHE_RSA_WITH_RC4_128_SHA',
0xc012: 'ECDHE_RSA_WITH_3DES_EDE_CBC_SHA',
0xc013: 'ECDHE_RSA_WITH_AES_128_CBC_SHA',
0xc014: 'ECDHE_RSA_WITH_AES_256_CBC_SHA',
0xc015: 'ECDH_anon_WITH_NULL_SHA',
0xc016: 'ECDH_anon_WITH_RC4_128_SHA',
0xc017: 'ECDH_anon_WITH_3DES_EDE_CBC_SHA',
0xc018: 'ECDH_anon_WITH_AES_128_CBC_SHA',
0xc019: 'ECDH_anon_WITH_AES_256_CBC_SHA',
0xc01a: 'SRP_SHA_WITH_3DES_EDE_CBC_SHA',
0xc01b: 'SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA',
0xc01c: 'SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA',
0xc01d: 'SRP_SHA_WITH_AES_128_CBC_SHA',
0xc01e: 'SRP_SHA_RSA_WITH_AES_128_CBC_SHA',
0xc01f: 'SRP_SHA_DSS_WITH_AES_128_CBC_SHA',
0xc020: 'SRP_SHA_WITH_AES_256_CBC_SHA',
0xc021: 'SRP_SHA_RSA_WITH_AES_256_CBC_SHA',
0xc022: 'SRP_SHA_DSS_WITH_AES_256_CBC_SHA',
0xc023: 'ECDHE_ECDSA_WITH_AES_128_CBC_SHA256',
0xc024: 'ECDHE_ECDSA_WITH_AES_256_CBC_SHA384',
0xc025: 'ECDH_ECDSA_WITH_AES_128_CBC_SHA256',
0xc026: 'ECDH_ECDSA_WITH_AES_256_CBC_SHA384',
0xc027: 'ECDHE_RSA_WITH_AES_128_CBC_SHA256',
0xc028: 'ECDHE_RSA_WITH_AES_256_CBC_SHA384',
0xc029: 'ECDH_RSA_WITH_AES_128_CBC_SHA256',
0xc02a: 'ECDH_RSA_WITH_AES_256_CBC_SHA384',
0xc02b: 'ECDHE_ECDSA_WITH_AES_128_GCM_SHA256',
0xc02c: 'ECDHE_ECDSA_WITH_AES_256_GCM_SHA384',
0xc02d: 'ECDH_ECDSA_WITH_AES_128_GCM_SHA256',
0xc02e: 'ECDH_ECDSA_WITH_AES_256_GCM_SHA384',
0xc02f: 'ECDHE_RSA_WITH_AES_128_GCM_SHA256',
0xc030: 'ECDHE_RSA_WITH_AES_256_GCM_SHA384',
0xc031: 'ECDH_RSA_WITH_AES_128_GCM_SHA256',
0xc032: 'ECDH_RSA_WITH_AES_256_GCM_SHA384',
0xc033: 'ECDHE_PSK_WITH_RC4_128_SHA',
0xc034: 'ECDHE_PSK_WITH_3DES_EDE_CBC_SHA',
0xc035: 'ECDHE_PSK_WITH_AES_128_CBC_SHA',
0xc036: 'ECDHE_PSK_WITH_AES_256_CBC_SHA',
0xc037: 'ECDHE_PSK_WITH_AES_128_CBC_SHA256',
0xc038: 'ECDHE_PSK_WITH_AES_256_CBC_SHA384',
0xc039: 'ECDHE_PSK_WITH_NULL_SHA',
0xc03a: 'ECDHE_PSK_WITH_NULL_SHA256',
0xc03b: 'ECDHE_PSK_WITH_NULL_SHA384',
0xc03c: 'RSA_WITH_ARIA_128_CBC_SHA256',
0xc03d: 'RSA_WITH_ARIA_256_CBC_SHA384',
0xc03e: 'DH_DSS_WITH_ARIA_128_CBC_SHA256',
0xc03f: 'DH_DSS_WITH_ARIA_256_CBC_SHA384',
0xc040: 'DH_RSA_WITH_ARIA_128_CBC_SHA256',
0xc041: 'DH_RSA_WITH_ARIA_256_CBC_SHA384',
0xc042: 'DHE_DSS_WITH_ARIA_128_CBC_SHA256',
0xc043: 'DHE_DSS_WITH_ARIA_256_CBC_SHA384',
0xc044: 'DHE_RSA_WITH_ARIA_128_CBC_SHA256',
0xc045: 'DHE_RSA_WITH_ARIA_256_CBC_SHA384',
0xc046: 'DH_anon_WITH_ARIA_128_CBC_SHA256',
0xc047: 'DH_anon_WITH_ARIA_256_CBC_SHA384',
0xc048: 'ECDHE_ECDSA_WITH_ARIA_128_CBC_SHA256',
0xc049: 'ECDHE_ECDSA_WITH_ARIA_256_CBC_SHA384',
0xc04a: 'ECDH_ECDSA_WITH_ARIA_128_CBC_SHA256',
0xc04b: 'ECDH_ECDSA_WITH_ARIA_256_CBC_SHA384',
0xc04c: 'ECDHE_RSA_WITH_ARIA_128_CBC_SHA256',
0xc04d: 'ECDHE_RSA_WITH_ARIA_256_CBC_SHA384',
0xc04e: 'ECDH_RSA_WITH_ARIA_128_CBC_SHA256',
0xc04f: 'ECDH_RSA_WITH_ARIA_256_CBC_SHA384',
0xc050: 'RSA_WITH_ARIA_128_GCM_SHA256',
0xc051: 'RSA_WITH_ARIA_256_GCM_SHA384',
0xc052: 'DHE_RSA_WITH_ARIA_128_GCM_SHA256',
0xc053: 'DHE_RSA_WITH_ARIA_256_GCM_SHA384',
0xc054: 'DH_RSA_WITH_ARIA_128_GCM_SHA256',
0xc055: 'DH_RSA_WITH_ARIA_256_GCM_SHA384',
0xc056: 'DHE_DSS_WITH_ARIA_128_GCM_SHA256',
0xc057: 'DHE_DSS_WITH_ARIA_256_GCM_SHA384',
0xc058: 'DH_DSS_WITH_ARIA_128_GCM_SHA256',
0xc059: 'DH_DSS_WITH_ARIA_256_GCM_SHA384',
0xc05a: 'DH_anon_WITH_ARIA_128_GCM_SHA256',
0xc05b: 'DH_anon_WITH_ARIA_256_GCM_SHA384',
0xc05c: 'ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256',
0xc05d: 'ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384',
0xc05e: 'ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256',
0xc05f: 'ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384',
0xc060: 'ECDHE_RSA_WITH_ARIA_128_GCM_SHA256',
0xc061: 'ECDHE_RSA_WITH_ARIA_256_GCM_SHA384',
0xc062: 'ECDH_RSA_WITH_ARIA_128_GCM_SHA256',
0xc063: 'ECDH_RSA_WITH_ARIA_256_GCM_SHA384',
0xc064: 'PSK_WITH_ARIA_128_CBC_SHA256',
0xc065: 'PSK_WITH_ARIA_256_CBC_SHA384',
0xc066: 'DHE_PSK_WITH_ARIA_128_CBC_SHA256',
0xc067: 'DHE_PSK_WITH_ARIA_256_CBC_SHA384',
0xc068: 'RSA_PSK_WITH_ARIA_128_CBC_SHA256',
0xc069: 'RSA_PSK_WITH_ARIA_256_CBC_SHA384',
0xc06a: 'PSK_WITH_ARIA_128_GCM_SHA256',
0xc06b: 'PSK_WITH_ARIA_256_GCM_SHA384',
0xc06c: 'DHE_PSK_WITH_ARIA_128_GCM_SHA256',
0xc06d: 'DHE_PSK_WITH_ARIA_256_GCM_SHA384',
0xc06e: 'RSA_PSK_WITH_ARIA_128_GCM_SHA256',
0xc06f: 'RSA_PSK_WITH_ARIA_256_GCM_SHA384',
0xc070: 'ECDHE_PSK_WITH_ARIA_128_CBC_SHA256',
0xc071: 'ECDHE_PSK_WITH_ARIA_256_CBC_SHA384',
0xc072: 'ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256',
0xc073: 'ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384',
0xc074: 'ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256',
0xc075: 'ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384',
0xc076: 'ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256',
0xc077: 'ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384',
0xc078: 'ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256',
0xc079: 'ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384',
0xc07a: 'RSA_WITH_CAMELLIA_128_GCM_SHA256',
0xc07b: 'RSA_WITH_CAMELLIA_256_GCM_SHA384',
0xc07c: 'DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256',
0xc07d: 'DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384',
0xc07e: 'DH_RSA_WITH_CAMELLIA_128_GCM_SHA256',
0xc07f: 'DH_RSA_WITH_CAMELLIA_256_GCM_SHA384',
0xc080: 'DHE_DSS_WITH_CAMELLIA_128_GCM_SHA256',
0xc081: 'DHE_DSS_WITH_CAMELLIA_256_GCM_SHA384',
0xc082: 'DH_DSS_WITH_CAMELLIA_128_GCM_SHA256',
0xc083: 'DH_DSS_WITH_CAMELLIA_256_GCM_SHA384',
0xc084: 'DH_anon_WITH_CAMELLIA_128_GCM_SHA256',
0xc085: 'DH_anon_WITH_CAMELLIA_256_GCM_SHA384',
0xc086: 'ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256',
0xc087: 'ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384',
0xc088: 'ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256',
0xc089: 'ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384',
0xc08a: 'ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256',
0xc08b: 'ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384',
0xc08c: 'ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256',
0xc08d: 'ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384',
0xc08e: 'PSK_WITH_CAMELLIA_128_GCM_SHA256',
0xc08f: 'PSK_WITH_CAMELLIA_256_GCM_SHA384',
0xc090: 'DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256',
0xc091: 'DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384',
0xc092: 'RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256',
0xc093: 'RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384',
0xc094: 'PSK_WITH_CAMELLIA_128_CBC_SHA256',
0xc095: 'PSK_WITH_CAMELLIA_256_CBC_SHA384',
0xc096: 'DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256',
0xc097: 'DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384',
0xc098: 'RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256',
0xc099: 'RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384',
0xc09a: 'ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256',
0xc09b: 'ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384',
0xc09c: 'RSA_WITH_AES_128_CCM',
0xc09d: 'RSA_WITH_AES_256_CCM',
0xc09e: 'DHE_RSA_WITH_AES_128_CCM',
0xc09f: 'DHE_RSA_WITH_AES_256_CCM',
0xc0a0: 'RSA_WITH_AES_128_CCM_8',
0xc0a1: 'RSA_WITH_AES_256_CCM_8',
0xc0a2: 'DHE_RSA_WITH_AES_128_CCM_8',
0xc0a3: 'DHE_RSA_WITH_AES_256_CCM_8',
0xc0a4: 'PSK_WITH_AES_128_CCM',
0xc0a5: 'PSK_WITH_AES_256_CCM',
0xc0a6: 'DHE_PSK_WITH_AES_128_CCM',
0xc0a7: 'DHE_PSK_WITH_AES_256_CCM',
0xc0a8: 'PSK_WITH_AES_128_CCM_8',
0xc0a9: 'PSK_WITH_AES_256_CCM_8',
0xc0aa: 'PSK_DHE_WITH_AES_128_CCM_8',
0xc0ab: 'PSK_DHE_WITH_AES_256_CCM_8',
0xc0ac: 'ECDHE_ECDSA_WITH_AES_128_CCM',
0xc0ad: 'ECDHE_ECDSA_WITH_AES_256_CCM',
0xc0ae: 'ECDHE_ECDSA_WITH_AES_128_CCM_8',
0xc0af: 'ECDHE_ECDSA_WITH_AES_256_CCM_8',
0xc0b0: 'ECCPWD_WITH_AES_128_GCM_SHA256',
0xc0b1: 'ECCPWD_WITH_AES_256_GCM_SHA384',
0xc0b2: 'ECCPWD_WITH_AES_128_CCM_SHA256',
0xc0b3: 'ECCPWD_WITH_AES_256_CCM_SHA384',
0xcca8: 'ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256',
0xcca9: 'ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256',
0xccaa: 'DHE_RSA_WITH_CHACHA20_POLY1305_SHA256',
0xccab: 'PSK_WITH_CHACHA20_POLY1305_SHA256',
0xccac: 'ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256',
0xccad: 'DHE_PSK_WITH_CHACHA20_POLY1305_SHA256',
0xccae: 'RSA_PSK_WITH_CHACHA20_POLY1305_SHA256',
0xd000: 'Unassigned',
0xd001: 'ECDHE_PSK_WITH_AES_128_GCM_SHA256',
0xd002: 'ECDHE_PSK_WITH_AES_256_GCM_SHA384',
0xd003: 'ECDHE_PSK_WITH_AES_128_CCM_8_SHA256',
0xd004: 'Unassigned',
0xd005: 'ECDHE_PSK_WITH_AES_128_CCM_SHA256',
}
TLS_CONTENTTYPE_REGISTRY = {
0x14: 'change_cipher_spec',
0x15: 'alert',
0x16: 'handshake',
0x17: 'application_data',
0x18: 'heartbeat',
}
TLS_ALERT_REGISTRY = {
0x00: 'close_notify',
0x0a: 'unexpected_message',
0x14: 'bad_record_mac',
0x15: 'decryption_failed',
0x16: 'record_overflow',
0x1e: 'decompression_failure',
0x28: 'handshake_failure',
0x29: 'no_certificate_RESERVED',
0x2a: 'bad_certificate',
0x2b: 'unsupported_certificate',
0x2c: 'certificate_revoked',
0x2d: 'certificate_expired',
0x2e: 'certificate_unknown',
0x2f: 'illegal_parameter',
0x30: 'unknown_ca',
0x31: 'access_denied',
0x32: 'decode_error',
0x33: 'decrypt_error',
0x3c: 'export_restriction_RESERVED',
0x46: 'protocol_version',
0x47: 'insufficient_security',
0x50: 'internal_error',
0x56: 'inappropriate_fallback',
0x5a: 'user_canceled',
0x64: 'no_renegotiation',
0x6e: 'unsupported_extension',
0x6f: 'certificate_unobtainable',
0x70: 'unrecognized_name',
0x71: 'bad_certificate_status_response',
0x72: 'bad_certificate_hash_value',
0x73: 'unknown_psk_identity',
}
TLS_HANDSHAKETYPE_REGISTRY = {
0x00: 'hello_request',
0x01: 'client_hello',
0x02: 'server_hello',
0x03: 'hello_verify_request',
0x04: 'NewSessionTicket',
0x0b: 'certificate',
0x0c: 'server_key_exchange',
0x0d: 'certificate_request',
0x0e: 'server_hello_done',
0x0f: 'certificate_verify',
0x10: 'client_key_exchange',
0x14: 'finished',
0x15: 'certificate_url',
0x16: 'certificate_status',
0x17: 'supplemental_data',
}
TLS_SUPPORTED_GROUPS_REGISTRY = {
0x00: 'Unassigned',
0x01: 'sect163k1',
0x02: 'sect163r1',
0x03: 'sect163r2',
0x04: 'sect193r1',
0x05: 'sect193r2',
0x06: 'sect233k1',
0x07: 'sect233r1',
0x08: 'sect239k1',
0x09: 'sect283k1',
0x0a: 'sect283r1',
0x0b: 'sect409k1',
0x0c: 'sect409r1',
0x0d: 'sect571k1',
0x0e: 'sect571r1',
0x0f: 'secp160k1',
0x10: 'secp160r1',
0x100: 'ffdhe2048',
0x101: 'ffdhe3072',
0x102: 'ffdhe4096',
0x103: 'ffdhe6144',
0x104: 'ffdhe8192',
0x11: 'secp160r2',
0x12: 'secp192k1',
0x13: 'secp192r1',
0x14: 'secp224k1',
0x15: 'secp224r1',
0x16: 'secp256k1',
0x17: 'secp256r1',
0x18: 'secp384r1',
0x19: 'secp521r1',
0x1a: 'brainpoolP256r1',
0x1b: 'brainpoolP384r1',
0x1c: 'brainpoolP512r1',
0x1d: 'x25519',
0x1e: 'x448',
0xff00: 'Unassigned',
0xff01: 'arbitrary_explicit_prime_curves',
0xff02: 'arbitrary_explicit_char2_curves',
}
TLS_EC_POINT_FORMAT_REGISTRY = {
0x00: 'uncompressed',
0x01: 'ansiX962_compressed_prime',
0x02: 'ansiX962_compressed_char2',
}
TLS_EC_CURVE_TYPE_REGISTRY = {
0x00: 'Unassigned',
0x01: 'explicit_prime',
0x02: 'explicit_char2',
0x03: 'named_curve',
}
TLS_SUPPLEMENTAL_DATA_FORMATS = {
0x00: 'user_mapping_data',
0x4002: 'authz_data',
}
TLS_USERMAPPINGTYPE_VALUES = {
0x40: 'upn_domain_hint',
}
TLS_SIGNATUREALGORITHM_REGISTRY = {
0x00: 'anonymous',
0x01: 'rsa',
0x02: 'dsa',
0x03: 'ecdsa',
0x07: 'ed25519',
0x08: 'ed448',
}
TLS_HASHALGORITHM_REGISTRY = {
0x00: 'none',
0x01: 'md5',
0x02: 'sha1',
0x03: 'sha224',
0x04: 'sha256',
0x05: 'sha384',
0x06: 'sha512',
0x07: 'Unassigned',
0x08: 'Intrinsic',
}
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
# Skipping: AttributeError("'NoneType' object has no attribute 'text'",)
TLS_EXPORTER_LABEL_REGISTRY = {
}
TLS_AUTHORIZATION_DATA_FORMATS = {
0x00: 'x509_attr_cert',
0x01: 'saml_assertion',
0x02: 'x509_attr_cert_url',
0x03: 'saml_assertion_url',
0x40: 'keynote_assertion_list',
0x41: 'keynote_assertion_list_url',
0x42: 'dtcp_authorization',
}
HEARTBEAT_MESSAGE_TYPES = {
0x00: 'Reserved',
0x01: 'heartbeat_request',
0x02: 'heartbeat_response',
0xff: 'Reserved',
}
HEARTBEAT_MODES = {
0x00: 'Reserved',
0x01: 'peer_allowed_to_send',
0x02: 'peer_not_allowed_to_send',
0xff: 'Reserved',
}
# Generator: fetch_iana_tls_registry.py
# date: 2018-02-12
# sources: https://www.iana.org/assignments/comp-meth-ids/comp-meth-ids.xml
# WARNING! THIS FILE IS AUTOGENERATED, DO NOT EDIT!

TLS_COMPRESSION_METHOD_IDENTIFIERS = {
0x00: 'NULL',
0x01: 'DEFLATE',
0x40: 'LZS',
}
# Generator: fetch_iana_tls_registry.py
# date: 2018-02-12
# sources: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xml
# WARNING! THIS FILE IS AUTOGENERATED, DO NOT EDIT!

EXTENSIONTYPE_VALUES = {
0x00: 'server_name',
0x01: 'max_fragment_length',
0x02: 'client_certificate_url',
0x03: 'trusted_ca_keys',
0x04: 'truncated_hmac',
0x05: 'status_request',
0x06: 'user_mapping',
0x07: 'client_authz',
0x08: 'server_authz',
0x09: 'cert_type',
0x0a: 'supported_groups',
0x0b: 'ec_point_formats',
0x0c: 'srp',
0x0d: 'signature_algorithms',
0x0e: 'use_srtp',
0x0f: 'heartbeat',
0x10: 'application_layer_protocol_negotiation',
0x11: 'status_request_v2',
0x12: 'signed_certificate_timestamp',
0x13: 'client_certificate_type',
0x14: 'server_certificate_type',
0x15: 'padding',
0x16: 'encrypt_then_mac',
0x17: 'extended_master_secret',
0x18: 'token_binding',
0x19: 'cached_info',
0x23: 'SessionTicket_TLS',
0xff01: 'renegotiation_info',
}
TLS_CERTIFICATE_TYPES = {
0x00: 'X_509',
0x01: 'OpenPGP',
0x02: 'Raw_Public_Key',
}
TLS_CERTIFICATE_STATUS_TYPES = {
0x00: 'Reserved',
0x01: 'ocsp',
0x02: 'ocsp_multi',
}
APPLICATION_LAYER_PROTOCOL_NEGOTIATION_PROTOCOL_IDS = {
'c-webrtc': 'Confidential_WebRTC_Media_and_Data',
'coap': 'CoAP',
'ftp': 'FTP',
'h2': 'HTTP_2_over_TLS',
'h2c': 'HTTP_2_over_TCP',
'http/1.1': 'HTTP_1_1',
'imap': 'IMAP',
'managesieve': 'ManageSieve',
'pop3': 'POP3',
'spdy/1': 'SPDY_1',
'spdy/2': 'SPDY_2',
'spdy/3': 'SPDY_3',
'stun.nat-discovery': 'NAT_discovery_using_Session_Traversal_Utilities_for_NAT',
'stun.turn': 'Traversal_Using_Relays_around_NAT',
'webrtc': 'WebRTC_Media_and_Data',
}
TLS_CACHEDINFORMATIONTYPE_VALUES = {
0x00: 'Reserved',
0x01: 'cert',
0x02: 'cert_req',
}

分析效果

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cat HTTPSFileHeader.tbl | column -t -s "|" | vim - -c "set nowrap"

ExtensionServerNames ExtensionSupportedGroups TLSContentType IPDst HandshakeSessionId HandshakeVersion IPSrc HandshakeCipherSuites HandshakeType TLSLength HandshakeRandomBytes HandshakeCompressionMethods TCPSrcPort HandshakeGmtUnixTime TCPDstPort TLSVersion HandshakeLength ExtensionEcPointFormats ExtensionSignatureAlgorithms
"my.oschina.net" "secp384r1, secp256r1, x25519, " "handshake" "116.211.174.177" "0x57 0x2d 0x61 0x5d 0x8d 0x84 0xf4 0x9c 0x17 0x6c 0xf3 0x16 0x85 0xe3 0x68 0x0f 0x4b 0xc3 0xab 0x49 0xde 0xe3 0x33 0x59 0xd4 0x81 0x4f 0x42 0x51 0xe3 0x52 0x9a " "TLS_1_0" "192.168.1.102" "RSA_WITH_3DES_EDE_CBC_SHA, RSA_WITH_AES_256_CBC_SHA, RSA_WITH_AES_128_CBC_SHA, RSA_WITH_AES_256_GCM_SHA384, RSA_WITH_AES_128_GCM_SHA256, ECDHE_RSA_WITH_AES_256_CBC_SHA, ECDHE_RSA_WITH_AES_128_CBC_SHA, ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_RSA_WITH_AES_256_GCM_SHA384, ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, " "client_hello" "" "0xcf 0x2c 0xd0 0x98 0x5a 0x3e 0x93 0xd4 0x0c 0xb4 0xc7 0x35 0x51 0x97 0x9e 0xd6 0xb8 0xbd 0x7c 0x3a 0x9e 0x9c 0x10 0x0e 0x67 0x55 0x70 0x39 " "" "443" "1989-04-01 04:53:01" "65009" "TLS_1_0" "" "uncompressed, " "rsa_pkcs1_sha1, rsa_pkcs1_sha512, rsa_pss_sha512, rsa_pkcs1_sha384, rsa_pss_sha384, ecdsa_secp384r1_sha384, rsa_pkcs1_sha256, rsa_pss_sha256, ecdsa_secp256r1_sha256, "
"my.oschina.net" "secp384r1, secp256r1, x25519, " "handshake" "116.211.174.177" "0x31 0x27 0x6f 0x56 0x57 0x4c 0xf2 0xdf 0xdd 0xa4 0xc0 0xb3 0x62 0x22 0x4d 0x3a 0x29 0x5a 0x41 0x89 0x36 0x36 0x78 0xa4 0x78 0x55 0x36 0x7a 0xee 0xaa 0x66 0x2e " "TLS_1_0" "192.168.1.102" "RSA_WITH_3DES_EDE_CBC_SHA, RSA_WITH_AES_256_CBC_SHA, RSA_WITH_AES_128_CBC_SHA, RSA_WITH_AES_256_GCM_SHA384, RSA_WITH_AES_128_GCM_SHA256, ECDHE_RSA_WITH_AES_256_CBC_SHA, ECDHE_RSA_WITH_AES_128_CBC_SHA, ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_RSA_WITH_AES_256_GCM_SHA384, ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, " "client_hello" "" "0x46 0xb5 0x0f 0xb3 0x0f 0xea 0x22 0x36 0x15 0x6e 0xa3 0x94 0x84 0xfa 0x58 0x04 0x91 0x16 0x79 0x0e 0x7d 0xeb 0x47 0x72 0xb5 0xf2 0xb0 0x43 " "" "443" "1992-01-18 20:40:36" "65010" "TLS_1_0" "" "uncompressed, " "rsa_pkcs1_sha1, rsa_pkcs1_sha512, rsa_pss_sha512, rsa_pkcs1_sha384, rsa_pss_sha384, ecdsa_secp384r1_sha384, rsa_pkcs1_sha256, rsa_pss_sha256, ecdsa_secp256r1_sha256, "
"" "" "handshake" "192.168.1.102" "" "TLS_1_2" "116.211.174.177" "ECDHE_RSA_WITH_AES_128_GCM_SHA256" "server_hello" "" "0x60 0x82 0xe2 0x9e 0x6e 0x7d 0xdd 0x2c 0xa3 0x21 0xa1 0x0b 0xa3 0x2b 0x80 0x79 0x92 0x37 0xe2 0x61 0x40 0x36 0xa4 0x46 0xb1 0x98 0x66 0x96 " "" "65009" "" "443" "TLS_1_2" "" "ansiX962_compressed_char2, ansiX962_compressed_prime, uncompressed, " ""
"" "" "handshake" "192.168.1.102" "" "TLS_1_2" "116.211.174.177" "ECDHE_RSA_WITH_AES_128_GCM_SHA256" "server_hello" "" "0x77 0x1e 0x16 0xc3 0x9b 0x76 0x69 0x4e 0xe9 0x3b 0x18 0x03 0xfd 0x94 0x02 0x56 0x19 0xf3 0xfd 0xea 0x58 0xc4 0x29 0x04 0xb5 0x63 0x9d 0xfc " "" "65010" "" "443" "TLS_1_2" "" "ansiX962_compressed_char2, ansiX962_compressed_prime, uncompressed, " ""
"my.oschina.net" "secp384r1, secp256r1, x25519, " "handshake" "116.211.174.177" "0xec 0x72 0x94 0xc2 0x79 0x7a 0xa2 0x12 0x7b 0xc3 0xfc 0x83 0x70 0xe9 0x83 0xdf 0x27 0x80 0x1b 0x42 0x85 0x86 0x37 0x38 0xff 0xdc 0x10 0x73 0x36 0xde 0x33 0x9f " "TLS_1_0" "192.168.1.102" "RSA_WITH_3DES_EDE_CBC_SHA, RSA_WITH_AES_256_CBC_SHA, RSA_WITH_AES_128_CBC_SHA, RSA_WITH_AES_256_GCM_SHA384, RSA_WITH_AES_128_GCM_SHA256, ECDHE_RSA_WITH_AES_256_CBC_SHA, ECDHE_RSA_WITH_AES_128_CBC_SHA, ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_RSA_WITH_AES_256_GCM_SHA384, ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, " "client_hello" "" "0x38 0x0e 0xf4 0xbf 0x77 0x61 0xa7 0x6f 0x76 0x46 0xf7 0x39 0x86 0xcd 0xe1 0xe3 0xdb 0x32 0xeb 0xb9 0xd6 0xd9 0xbf 0x1a 0x8e 0x77 0x83 0x15 " "" "443" "2017-10-09 17:05:21" "65011" "TLS_1_0" "" "uncompressed, " "rsa_pkcs1_sha1, rsa_pkcs1_sha512, rsa_pss_sha512, rsa_pkcs1_sha384, rsa_pss_sha384, ecdsa_secp384r1_sha384, rsa_pkcs1_sha256, rsa_pss_sha256, ecdsa_secp256r1_sha256, "
"" "" "handshake" "192.168.1.102" "" "TLS_1_2" "116.211.174.177" "ECDHE_RSA_WITH_AES_128_GCM_SHA256" "server_hello" "" "0xf2 0x16 0xc5 0xdc 0x17 0x55 0xf1 0xc9 0x3b 0xcb 0x78 0x4f 0x5d 0xd8 0xaf 0x5e 0xb8 0x44 0x54 0xa0 0xc9 0xa0 0xaa 0xfc 0xb6 0x17 0x05 0xe3 " "" "65011" "" "443" "TLS_1_2" "" "ansiX962_compressed_char2, ansiX962_compressed_prime, uncompressed, " ""
"static.oschina.net" "secp384r1, secp256r1, x25519, " "handshake" "116.211.174.177" "0x56 0x64 0x20 0x93 0x05 0x95 0xa9 0x16 0x17 0xc7 0x37 0x1c 0xfb 0x95 0x41 0x93 0xe3 0xaa 0x0d 0x6a 0x00 0x85 0x97 0x30 0xe2 0xf6 0x5c 0x31 0xc4 0x63 0xcf 0x7e " "TLS_1_0" "192.168.1.102" "RSA_WITH_3DES_EDE_CBC_SHA, RSA_WITH_AES_256_CBC_SHA, RSA_WITH_AES_128_CBC_SHA, RSA_WITH_AES_256_GCM_SHA384, RSA_WITH_AES_128_GCM_SHA256, ECDHE_RSA_WITH_AES_256_CBC_SHA, ECDHE_RSA_WITH_AES_128_CBC_SHA, ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_RSA_WITH_AES_256_GCM_SHA384, ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, " "client_hello" "" "0x65 0x1c 0xb4 0x01 0xb5 0x23 0x61 0xbe 0x78 0x28 0xb3 0xd3 0x23 0x84 0x3b 0xeb 0xbd 0x3b 0x86 0x2e 0xb5 0x5d 0x69 0x9b 0x94 0x7f 0xa3 0x4e " "" "443" "1979-11-29 09:48:11" "65017" "TLS_1_0" "" "uncompressed, " "rsa_pkcs1_sha1, rsa_pkcs1_sha512, rsa_pss_sha512, rsa_pkcs1_sha384, rsa_pss_sha384, ecdsa_secp384r1_sha384, rsa_pkcs1_sha256, rsa_pss_sha256, ecdsa_secp256r1_sha256, "
"static.oschina.net" "secp384r1, secp256r1, x25519, " "handshake" "116.211.174.177" "0x52 0x19 0xa7 0x60 0x12 0x46 0x67 0xe7 0x7e 0x81 0xf9 0x8f 0xa4 0x47 0x9a 0x50 0x0d 0x08 0x7b 0x69 0x8c 0x7d 0x54 0x8f 0xe2 0x58 0x30 0xf1 0xa7 0x6d 0x7b 0x52 " "TLS_1_0" "192.168.1.102" "RSA_WITH_3DES_EDE_CBC_SHA, RSA_WITH_AES_256_CBC_SHA, RSA_WITH_AES_128_CBC_SHA, RSA_WITH_AES_256_GCM_SHA384, RSA_WITH_AES_128_GCM_SHA256, ECDHE_RSA_WITH_AES_256_CBC_SHA, ECDHE_RSA_WITH_AES_128_CBC_SHA, ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_RSA_WITH_AES_256_GCM_SHA384, ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, " "client_hello" "" "0xe9 0x86 0xa3 0x95 0x4f 0x80 0x10 0x13 0x26 0x5c 0xf7 0x6b 0x12 0x4e 0x8d 0x8c 0xe5 0xd4 0x09 0x98 0x46 0x59 0xa5 0x4b 0xc3 0x56 0x5b 0x27 " "" "443" "2064-03-29 03:59:49" "65018" "TLS_1_0" "" "uncompressed, " "rsa_pkcs1_sha1, rsa_pkcs1_sha512, rsa_pss_sha512, rsa_pkcs1_sha384, rsa_pss_sha384, ecdsa_secp384r1_sha384, rsa_pkcs1_sha256, rsa_pss_sha256, ecdsa_secp256r1_sha256, "
"static.oschina.net" "secp384r1, secp256r1, x25519, " "handshake" "116.211.174.177" "0x0f 0x33 0x0c 0xbd 0xfa 0xdb 0x86 0xa1 0xfd 0x67 0xe4 0xeb 0x68 0xb9 0x87 0x90 0x0e 0xf3 0x23 0x49 0x9e 0x8a 0xbb 0xc0 0x2c 0x4b 0xd4 0x4e 0x56 0x5a 0xd3 0x73 " "TLS_1_0" "192.168.1.102" "RSA_WITH_3DES_EDE_CBC_SHA, RSA_WITH_AES_256_CBC_SHA, RSA_WITH_AES_128_CBC_SHA, RSA_WITH_AES_256_GCM_SHA384, RSA_WITH_AES_128_GCM_SHA256, ECDHE_RSA_WITH_AES_256_CBC_SHA, ECDHE_RSA_WITH_AES_128_CBC_SHA, ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_RSA_WITH_AES_256_GCM_SHA384, ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, " "client_hello" "" "0xe7 0x93 0x59 0xe7 0x2d 0xb3 0xb1 0x80 0xe8 0xc8 0x17 0x26 0x13 0x1b 0x57 0x96 0x22 0x27 0xe2 0x45 0x49 0x13 0x16 0x77 0xd0 0xaf 0x54 0xf5 " "" "443" "1974-04-10 08:44:38" "65020" "TLS_1_0" "" "uncompressed, " "rsa_pkcs1_sha1, rsa_pkcs1_sha512, rsa_pss_sha512, rsa_pkcs1_sha384, rsa_pss_sha384, ecdsa_secp384r1_sha384, rsa_pkcs1_sha256, rsa_pss_sha256, ecdsa_secp256r1_sha256, "
"static.oschina.net" "secp384r1, secp256r1, x25519, " "handshake" "116.211.174.177" "0x6e 0x3f 0xda 0x9f 0xa4 0xb0 0x74 0x26 0x56 0x11 0x6d 0x98 0x9a 0x15 0x5e 0x5b 0x95 0x3f 0x75 0x95 0x59 0xf9 0x00 0x07 0xce 0x14 0xfd 0xa4 0xa5 0xfc 0xa4 0xb5 " "TLS_1_0" "192.168.1.102" "RSA_WITH_3DES_EDE_CBC_SHA, RSA_WITH_AES_256_CBC_SHA, RSA_WITH_AES_128_CBC_SHA, RSA_WITH_AES_256_GCM_SHA384, RSA_WITH_AES_128_GCM_SHA256, ECDHE_RSA_WITH_AES_256_CBC_SHA, ECDHE_RSA_WITH_AES_128_CBC_SHA, ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_RSA_WITH_AES_256_GCM_SHA384, ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, " "client_hello" "" "0x34 0x90 0x3e 0xce 0x1c 0xbd 0xd4 0x7d 0x22 0x0f 0x15 0x5e 0x76 0xa8 0xa8 0xe9 0xa7 0xb3 0xaf 0xb8 0x5d 0xbe 0x5f 0x98 0xaa 0xbd 0x89 0xc6 " "" "443" "1991-07-11 19:22:20" "65019" "TLS_1_0" "" "uncompressed, " "rsa_pkcs1_sha1, rsa_pkcs1_sha512, rsa_pss_sha512, rsa_pkcs1_sha384, rsa_pss_sha384, ecdsa_secp384r1_sha384, rsa_pkcs1_sha256, rsa_pss_sha256, ecdsa_secp256r1_sha256, "
"static.oschina.net" "secp384r1, secp256r1, x25519, " "handshake" "116.211.174.177" "0xe5 0xe0 0x8e 0x72 0xa4 0xf9 0x17 0xf0 0x5c 0x49 0x80 0xaa 0x75 0xc9 0xe4 0xad 0x77 0x7e 0x86 0x4a 0xd8 0x1f 0x10 0x77 0x8c 0x29 0x3f 0x5e 0x4d 0x3a 0x37 0xe9 " "TLS_1_0" "192.168.1.102" "RSA_WITH_3DES_EDE_CBC_SHA, RSA_WITH_AES_256_CBC_SHA, RSA_WITH_AES_128_CBC_SHA, RSA_WITH_AES_256_GCM_SHA384, RSA_WITH_AES_128_GCM_SHA256, ECDHE_RSA_WITH_AES_256_CBC_SHA, ECDHE_RSA_WITH_AES_128_CBC_SHA, ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_RSA_WITH_AES_256_GCM_SHA384, ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, " "client_hello" "" "0x91 0x54 0x16 0xa2 0xc8 0x0d 0xb7 0x1f 0xf5 0xb9 0xaf 0xde 0xfa 0xa5 0xd8 0xf3 0x91 0x3e 0xba 0xe3 0xf0 0x95 0xa0 0x3b 0xe6 0xd1 0x9d 0x8b " "" "443" "2013-10-07 11:37:28" "65016" "TLS_1_0" "" "uncompressed, " "rsa_pkcs1_sha1, rsa_pkcs1_sha512, rsa_pss_sha512, rsa_pkcs1_sha384, rsa_pss_sha384, ecdsa_secp384r1_sha384, rsa_pkcs1_sha256, rsa_pss_sha256, ecdsa_secp256r1_sha256, "
"my.oschina.net" "secp384r1, secp256r1, x25519, " "handshake" "116.211.174.177" "0x23 0x44 0xca 0x50 0x92 0x7c 0x0d 0x2e 0xca 0x3f 0x6d 0x39 0x74 0x3b 0xce 0xfd 0xc6 0x07 0x99 0xae 0xfa 0x92 0x14 0x1f 0x46 0x8c 0xeb 0x51 0xab 0xc5 0x6e 0x7f " "TLS_1_0" "192.168.1.102" "RSA_WITH_3DES_EDE_CBC_SHA, RSA_WITH_AES_256_CBC_SHA, RSA_WITH_AES_128_CBC_SHA, RSA_WITH_AES_256_GCM_SHA384, RSA_WITH_AES_128_GCM_SHA256, ECDHE_RSA_WITH_AES_256_CBC_SHA, ECDHE_RSA_WITH_AES_128_CBC_SHA, ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_RSA_WITH_AES_256_GCM_SHA384, ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, " "client_hello" "" "0x0e 0x15 0x85 0xeb 0x22 0xea 0xe0 0x83 0xc3 0x2c 0xd7 0x2f 0xef 0xe5 0xef 0x49 0x14 0xfa 0x60 0xd2 0x3a 0xfb 0xf2 0x97 0x42 0x35 0x79 0xd9 " "" "443" "2047-06-01 02:38:08" "65021" "TLS_1_0" "" "uncompressed, " "rsa_pkcs1_sha1, rsa_pkcs1_sha512, rsa_pss_sha512, rsa_pkcs1_sha384, rsa_pss_sha384, ecdsa_secp384r1_sha384, rsa_pkcs1_sha256, rsa_pss_sha256, ecdsa_secp256r1_sha256, "
"my.oschina.net" "secp384r1, secp256r1, x25519, " "handshake" "116.211.174.177" "0x23 0x44 0xca 0x50 0x92 0x7c 0x0d 0x2e 0xca 0x3f 0x6d 0x39 0x74 0x3b 0xce 0xfd 0xc6 0x07 0x99 0xae 0xfa 0x92 0x14 0x1f 0x46 0x8c 0xeb 0x51 0xab 0xc5 0x6e 0x7f " "TLS_1_0" "192.168.1.102" "RSA_WITH_3DES_EDE_CBC_SHA, RSA_WITH_AES_256_CBC_SHA, RSA_WITH_AES_128_CBC_SHA, RSA_WITH_AES_256_GCM_SHA384, RSA_WITH_AES_128_GCM_SHA256, ECDHE_RSA_WITH_AES_256_CBC_SHA, ECDHE_RSA_WITH_AES_128_CBC_SHA, ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_RSA_WITH_AES_256_GCM_SHA384, ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, " "client_hello" "" "0x72 0x04 0x37 0xf2 0x50 0x0f 0xbd 0xff 0x10 0xd6 0x08 0xef 0x55 0xab 0x25 0x1a 0x6d 0x54 0x7f 0x3c 0xb9 0x2c 0xe0 0x4e 0x58 0xbc 0x5d 0x7d " "" "443" "2057-01-30 14:02:49" "65022" "TLS_1_0" "" "uncompressed, " "rsa_pkcs1_sha1, rsa_pkcs1_sha512, rsa_pss_sha512, rsa_pkcs1_sha384, rsa_pss_sha384, ecdsa_secp384r1_sha384, rsa_pkcs1_sha256, rsa_pss_sha256, ecdsa_secp256r1_sha256, "
"" "" "handshake" "192.168.1.102" "" "TLS_1_2" "116.211.174.177" "ECDHE_RSA_WITH_AES_128_GCM_SHA256" "server_hello" "" "0xde 0x97 0x89 0x8a 0xa7 0xd4 0x0d 0x75 0x71 0xeb 0xf7 0x0c 0xe0 0x04 0x85 0xdc 0x32 0x80 0xc0 0x21 0x99 0xd4 0xd9 0x3e 0x1b 0x51 0xd4 0x8b " "" "65018" "" "443" "TLS_1_2" "" "ansiX962_compressed_char2, ansiX962_compressed_prime, uncompressed, " ""
"" "" "handshake" "192.168.1.102" "" "TLS_1_2" "116.211.174.177" "ECDHE_RSA_WITH_AES_128_GCM_SHA256" "server_hello" "" "0x3d 0x83 0xa7 0xde 0x97 0xbb 0xf3 0xbe 0x0d 0x55 0xff 0xb3 0x1a 0x80 0xad 0x88 0xea 0xb5 0x57 0xbb 0x74 0x54 0xdf 0x95 0x93 0x65 0xb1 0x30 " "" "65017" "" "443" "TLS_1_2" "" "ansiX962_compressed_char2, ansiX962_compressed_prime, uncompressed, " ""
"" "" "handshake" "192.168.1.102" "" "TLS_1_2" "116.211.174.177" "ECDHE_RSA_WITH_AES_128_GCM_SHA256" "server_hello" "" "0xba 0xb8 0xf9 0x17 0xdb 0xc2 0x76 0x35 0x73 0x7e 0x9b 0x5c 0x6d 0x4d 0x04 0x34 0x65 0xb9 0x6b 0x0d 0xbb 0x18 0x19 0xe4 0xb2 0xce 0x8b 0x4e " "" "65019" "" "443" "TLS_1_2" "" "ansiX962_compressed_char2, ansiX962_compressed_prime, uncompressed, " ""
"" "" "handshake" "192.168.1.102" "" "TLS_1_2" "116.211.174.177" "ECDHE_RSA_WITH_AES_128_GCM_SHA256" "server_hello" "" "0xce 0xfa 0xe5 0x3a 0x45 0xbb 0xa7 0xf5 0x6e 0x79 0x61 0x35 0x1c 0x49 0xd8 0x82 0x0d 0x96 0x9d 0xde 0x56 0x89 0x7a 0x57 0xc3 0xa6 0x9c 0xcb " "" "65020" "" "443" "TLS_1_2" "" "ansiX962_compressed_char2, ansiX962_compressed_prime, uncompressed, " ""
"" "" "handshake" "192.168.1.102" "" "TLS_1_2" "116.211.174.177" "ECDHE_RSA_WITH_AES_128_GCM_SHA256" "server_hello" "" "0x70 0xb5 0xfa 0x7c 0xf8 0x8f 0x48 0x4c 0x44 0xff 0x07 0xad 0x0b 0x56 0x95 0x81 0x8c 0xc0 0x7d 0xdc 0xf4 0x7c 0xa1 0x5a 0xc7 0x65 0x18 0x56 " "" "65016" "" "443" "TLS_1_2" "" "ansiX962_compressed_char2, ansiX962_compressed_prime, uncompressed, " ""
"" "" "handshake" "192.168.1.102" "" "TLS_1_2" "116.211.174.177" "ECDHE_RSA_WITH_AES_128_GCM_SHA256" "server_hello" "" "0x97 0xa1 0x42 0x4e 0x8f 0x57 0xbe 0xa4 0x30 0x39 0x8a 0xef 0xef 0x20 0xf1 0xac 0x88 0x22 0x37 0xfc 0xfb 0xcd 0x42 0x13 0x0f 0xfc 0xa1 0xa9 " "" "65022" "" "443" "TLS_1_2" "" "ansiX962_compressed_char2, ansiX962_compressed_prime, uncompressed, " ""
"" "" "handshake" "192.168.1.102" "" "TLS_1_2" "116.211.174.177" "ECDHE_RSA_WITH_AES_128_GCM_SHA256" "server_hello" "" "0x43 0x5b 0x1d 0x03 0xf8 0x3e 0x3d 0x4f 0xfd 0xf9 0xe7 0x91 0x98 0xf8 0x09 0x69 0xc8 0xc0 0x92 0x20 0x39 0xd1 0xa9 0x0d 0x8f 0x1f 0x65 0x33 " "" "65021" "" "443" "TLS_1_2" "" "ansiX962_compressed_char2, ansiX962_compressed_prime, uncompressed, " ""
"hm.baidu.com" "secp384r1, secp256r1, x25519, " "handshake" "220.181.7.190" "0xf6 0xe2 0x21 0x05 0xe4 0x45 0x9f 0x46 0x65 0x58 0xd7 0x22 0x14 0x4a 0x7e 0x01 0xa3 0x28 0x2e 0x34 0xde 0x70 0xe6 0x20 0x04 0x69 0x3c 0x9e 0x14 0xd4 0xe6 0x86 " "TLS_1_0" "192.168.1.102" "RSA_WITH_3DES_EDE_CBC_SHA, RSA_WITH_AES_256_CBC_SHA, RSA_WITH_AES_128_CBC_SHA, RSA_WITH_AES_256_GCM_SHA384, RSA_WITH_AES_128_GCM_SHA256, ECDHE_RSA_WITH_AES_256_CBC_SHA, ECDHE_RSA_WITH_AES_128_CBC_SHA, ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_RSA_WITH_AES_256_GCM_SHA384, ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, " "client_hello" "" "0x58 0x7a 0x21 0xb6 0x44 0xb8 0xf8 0x19 0x31 0x03 0xdd 0x7d 0x49 0x86 0x6d 0xa4 0xe4 0xee 0x50 0x1c 0x08 0xde 0xfd 0x78 0xb9 0x53 0x08 0x96 " "" "443" "1981-06-25 08:24:56" "65028" "TLS_1_0" "" "uncompressed, " "rsa_pkcs1_sha1, rsa_pkcs1_sha512, rsa_pss_sha512, rsa_pkcs1_sha384, rsa_pss_sha384, ecdsa_secp384r1_sha384, rsa_pkcs1_sha256, rsa_pss_sha256, ecdsa_secp256r1_sha256, "
"" "" "handshake" "192.168.1.102" "" "TLS_1_2" "220.181.7.190" "ECDHE_RSA_WITH_AES_128_GCM_SHA256" "server_hello" "" "0x46 0xac 0x9c 0xef 0xaf 0xe8 0x87 0xdc 0x84 0xfd 0x51 0x2a 0xdd 0x2c 0x39 0x07 0xad 0x28 0x4b 0x9a 0x1c 0x4d 0xc0 0x48 0xa2 0xa7 0xb7 0xce " "" "65028" "" "443" "TLS_1_2" "" "" ""
"ss0.bdstatic.com" "secp384r1, secp256r1, x25519, " "handshake" "180.163.198.32" "0x7c 0x03 0x35 0xa4 0xd1 0x72 0x0f 0xff 0x3f 0x79 0xc1 0xb6 0xc1 0x54 0xc5 0x19 0x7a 0xd2 0x29 0x56 0xbe 0x1b 0x30 0x23 0xd1 0x83 0x2e 0x11 0x31 0x59 0x45 0x25 " "TLS_1_0" "192.168.1.102" "RSA_WITH_3DES_EDE_CBC_SHA, RSA_WITH_AES_256_CBC_SHA, RSA_WITH_AES_128_CBC_SHA, RSA_WITH_AES_256_GCM_SHA384, RSA_WITH_AES_128_GCM_SHA256, ECDHE_RSA_WITH_AES_256_CBC_SHA, ECDHE_RSA_WITH_AES_128_CBC_SHA, ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, ECDHE_RSA_WITH_AES_256_GCM_SHA384, ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, " "client_hello" "" "0x87 0xe3 0x1a 0xd5 0xdc 0x6b 0x84 0x7b 0x35 0xcc 0xc3 0x9e 0x9d 0xa5 0x45 0xad 0x33 0x1c 0x87 0x78 0x3e 0x75 0xe9 0x34 0x1c 0xac 0x1f 0xc1 " "" "443" "2054-03-12 04:32:37" "65134" "TLS_1_0" "" "uncompressed, " "rsa_pkcs1_sha1, rsa_pkcs1_sha512, rsa_pss_sha512, rsa_pkcs1_sha384, rsa_pss_sha384, ecdsa_secp384r1_sha384, rsa_pkcs1_sha256, rsa_pss_sha256, ecdsa_secp256r1_sha256, "
"ss