Skip to content

Instantly share code, notes, and snippets.

@indutny
Created October 4, 2011 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indutny/459ff6756754f96c226a to your computer and use it in GitHub Desktop.
Save indutny/459ff6756754f96c226a to your computer and use it in GitHub Desktop.
// Below will be handshake with protocol 0x0301 and size x007a
16 03 01 00 7a
// Below will be ClientHello with size 0x0076
01 00 00 76
// Version
03 01
// Random
4e 8b 59 f7 73 0d 9e eb
ca b3 3b b7 36 61 50 35
c5 3f e4 7f 36 38 71 43
53 e2 2a e5 df 51 2e fe
// Session ID size
00
// Cipher suite size
00 28
// Ciphers
00 39 00 38 00 35 00 16
00 13 00 0a 00 33 00 32
00 2f 00 05 00 04 00 15
00 12 00 09 00 14 00 11
00 08 00 06 00 03 00 ff
// Compression methods size
02
// Compression methods
01 00
// Extensions size
00 24
// Extensions
// Type = 0, SNI
00 00
// HostsList size
00 0e
// Host size
00 0c
// Host type = domain
00
// Domain length
00 09
// Domain = localhost
6c 6f 63 61 6c 68 6f 73 74
// Extension type = SNI
00 00
// HostList size
00 0e
// Host size
00 0c
// Host type = domain
00
// Domain length
00 09
// Domain = 127.0.0.1
31 32 37 2e 30 2e 30 2e 31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment