Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/mitm-socket/go/clienthello_safari13.go
1029 views
1
package main
2
3
import (
4
tls "github.com/ulixee/utls"
5
)
6
7
// TODO: move this to a json format that's sent in.. thus the raw values
8
func GetSafari13Spec() tls.ClientHelloSpec {
9
return tls.ClientHelloSpec{
10
CipherSuites: []uint16{
11
0x1301,
12
0x1302,
13
0x1303,
14
0xC02C,
15
0xC02B,
16
0xC024,
17
0xC023,
18
0xC00A,
19
0xC009,
20
0xCCA9,
21
0xC030,
22
0xC02F,
23
0xC028,
24
0xC027,
25
0xC014,
26
0xC013,
27
0xCCA8,
28
0x009D,
29
0x009C,
30
0x003D,
31
0x003C,
32
0x0035,
33
0x002F,
34
0xC008,
35
0xC012,
36
0x000A,
37
},
38
CompressionMethods: []byte{
39
0x00,
40
},
41
Extensions: []tls.TLSExtension{
42
&tls.RenegotiationInfoExtension{Renegotiation: tls.RenegotiateOnceAsClient},
43
&tls.SNIExtension{},
44
&tls.UtlsExtendedMasterSecretExtension{},
45
&tls.SignatureAlgorithmsExtension{SupportedSignatureAlgorithms: []tls.SignatureScheme{
46
0x0403,
47
0x0804,
48
0x0401,
49
0x0503,
50
0x0203,
51
0x0805,
52
0x0805,
53
0x0501,
54
0x0806,
55
0x0601,
56
0x0201,
57
}},
58
&tls.StatusRequestExtension{},
59
&tls.SCTExtension{},
60
&tls.ALPNExtension{AlpnProtocols: []string{"h2", "http/1.1"}},
61
&tls.SupportedPointsExtension{SupportedPoints: []byte{
62
uint8(0),
63
}},
64
&tls.KeyShareExtension{[]tls.KeyShare{
65
{Group: tls.CurveID(29)},
66
}},
67
&tls.PSKKeyExchangeModesExtension{[]uint8{1}},
68
&tls.SupportedVersionsExtension{[]uint16{
69
uint16(772),
70
uint16(771),
71
uint16(770),
72
uint16(769),
73
}},
74
&tls.SupportedCurvesExtension{[]tls.CurveID{
75
tls.CurveID(29),
76
tls.CurveID(23),
77
tls.CurveID(24),
78
tls.CurveID(25),
79
}},
80
&tls.UtlsPaddingExtension{GetPaddingLen: tls.BoringPaddingStyle},
81
},
82
}
83
}
84
85