-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwith-tls
29 lines (23 loc) · 1.88 KB
/
with-tls
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
handshake
readPacket
===> read hdr len=4, []byte{0x5b, 0x0, 0x0, 0x0}
===> read data data* len=91 []byte{0xa, 0x35, 0x2e, 0x37, 0x2e, 0x32, 0x33, 0x2d, 0x30, 0x75, 0x62, 0x75, 0x6e, 0x74, 0x75, 0x30, 0x2e, 0x31, 0x36, 0x2e, 0x30, 0x34, 0x2e, 0x31, 0x0, 0x3a, 0x0, 0x0, 0x0, 0x4e, 0x2a, 0x7b, 0x3a, 0xe, 0x76, 0x16, 0xd, 0x0, 0xff, 0xff, 0x8, 0x2, 0x0, 0xff, 0xc1, 0x15, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x17, 0x72, 0x4c, 0x35, 0x2a, 0x13, 0x7b, 0x3a, 0x6e, 0x74, 0x54, 0x14, 0x0, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x0}
writeHandshakeResponsePacket
writePacket
===> writing data len=36 []byte{0x20, 0x0, 0x0, 0x1, 0x8d, 0xaa, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, 0x21, 0x75, 0x62, 0x75, 0x6e, 0x74, 0x75, 0x30, 0x2e, 0x31, 0x36, 0x2e, 0x30, 0x34, 0x2e, 0x31, 0x0, 0x3a, 0x0, 0x0, 0x0, 0x4e, 0x2a, 0x7b}
successfully handshook with the server
writePacket
===> writing data len=88 []byte{0x54, 0x0, 0x0, 0x2, 0x8d, 0xaa, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0, 0x21, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x72, 0x6f, 0x6f, 0x74, 0x0, 0x14, 0x7, 0xfc, 0x64, 0x40, 0x8e, 0xa9, 0x7b, 0xe7, 0xd9, 0xcf, 0xbc, 0x16, 0xb7, 0x8d, 0x2e, 0xdb, 0x76, 0x17, 0x65, 0x4c, 0x66, 0x6f, 0x6f, 0x0, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x0}
handle auth result
readPacket
===> read hdr len=4, []byte{0x7, 0x0, 0x0, 0x3}
===> read data data* len=7 []byte{0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0}
pinging
writePacket
===> writing data len=5 []byte{0x1, 0x0, 0x0, 0x0, 0xe}
readPacket
===> read hdr len=4, []byte{0x7, 0x0, 0x0, 0x1}
===> read data data* len=7 []byte{0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0}
success with tls
writePacket
===> writing data len=5 []byte{0x1, 0x0, 0x0, 0x0, 0x1}