Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 129 additions & 0 deletions profiles/contributed_browser_profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,135 @@ import (
"github.com/bogdanfinn/utls/dicttls"
)

var Firefox_133 = ClientProfile{
clientHelloId: tls.ClientHelloID{
Client: "Firefox",
RandomExtensionOrder: false,
Version: "133",
Seed: nil,
SpecFactory: func() (tls.ClientHelloSpec, error) {
return tls.ClientHelloSpec{
CipherSuites: []uint16{
tls.TLS_AES_128_GCM_SHA256,
tls.TLS_CHACHA20_POLY1305_SHA256,
tls.TLS_AES_256_GCM_SHA384,
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,
tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256,
tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,
tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
tls.TLS_RSA_WITH_AES_128_GCM_SHA256,
tls.TLS_RSA_WITH_AES_256_GCM_SHA384,
tls.TLS_RSA_WITH_AES_128_CBC_SHA,
tls.TLS_RSA_WITH_AES_256_CBC_SHA,
},
CompressionMethods: []byte{
tls.CompressionNone,
},
Extensions: []tls.TLSExtension{
&tls.SNIExtension{},
&tls.ExtendedMasterSecretExtension{},
&tls.RenegotiationInfoExtension{
Renegotiation: tls.RenegotiateOnceAsClient,
},
&tls.SupportedCurvesExtension{Curves: []tls.CurveID{
tls.X25519MLKEM768,
tls.X25519,
tls.CurveP256,
tls.CurveP384,
tls.CurveP521,
tls.FAKEFFDHE2048,
tls.FAKEFFDHE3072,
}},
&tls.SupportedPointsExtension{SupportedPoints: []byte{
tls.PointFormatUncompressed,
}},
&tls.ALPNExtension{AlpnProtocols: []string{
"h2",
"http/1.1",
}},
&tls.StatusRequestExtension{},
&tls.DelegatedCredentialsExtension{SupportedSignatureAlgorithms: []tls.SignatureScheme{
tls.ECDSAWithP256AndSHA256,
tls.ECDSAWithP384AndSHA384,
tls.ECDSAWithP521AndSHA512,
tls.ECDSAWithSHA1,
}},
&tls.KeyShareExtension{KeyShares: []tls.KeyShare{
{Group: tls.X25519MLKEM768},
{Group: tls.X25519},
{Group: tls.CurveP256},
}},
&tls.SupportedVersionsExtension{Versions: []uint16{
tls.VersionTLS13,
tls.VersionTLS12,
}},
&tls.SignatureAlgorithmsExtension{SupportedSignatureAlgorithms: []tls.SignatureScheme{
tls.ECDSAWithP256AndSHA256,
tls.ECDSAWithP384AndSHA384,
tls.ECDSAWithP521AndSHA512,
tls.PSSWithSHA256,
tls.PSSWithSHA384,
tls.PSSWithSHA512,
tls.PKCS1WithSHA256,
tls.PKCS1WithSHA384,
tls.PKCS1WithSHA512,
tls.ECDSAWithSHA1,
tls.PKCS1WithSHA1,
}},
&tls.FakeRecordSizeLimitExtension{Limit: 0x4001},
&tls.UtlsCompressCertExtension{Algorithms: []tls.CertCompressionAlgo{
tls.CertCompressionZlib,
tls.CertCompressionBrotli,
tls.CertCompressionZstd,
}},
&tls.GREASEEncryptedClientHelloExtension{
CandidateCipherSuites: []tls.HPKESymmetricCipherSuite{
{
KdfId: dicttls.HKDF_SHA256,
AeadId: dicttls.AEAD_AES_128_GCM,
},
{
KdfId: dicttls.HKDF_SHA256,
AeadId: dicttls.AEAD_AES_256_GCM,
},
{
KdfId: dicttls.HKDF_SHA256,
AeadId: dicttls.AEAD_CHACHA20_POLY1305,
},
},
CandidatePayloadLens: []uint16{128, 223}, // +16: 144, 239
},
},
}, nil
},
},
settings: map[http2.SettingID]uint32{
http2.SettingHeaderTableSize: 65536,
http2.SettingEnablePush: 0,
http2.SettingInitialWindowSize: 131072,
http2.SettingMaxFrameSize: 16384,
},
settingsOrder: []http2.SettingID{
http2.SettingHeaderTableSize,
http2.SettingEnablePush,
http2.SettingInitialWindowSize,
http2.SettingMaxFrameSize,
},
pseudoHeaderOrder: []string{
":method",
":path",
":authority",
":scheme",
},
connectionFlow: 12517377,
}

var Chrome_131_PSK = ClientProfile{
clientHelloId: tls.ClientHelloID{
Client: "Chrome",
Expand Down
1 change: 1 addition & 0 deletions profiles/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var MappedTLSClients = map[string]ClientProfile{
"firefox_120": Firefox_120,
"firefox_123": Firefox_123,
"firefox_132": Firefox_132,
"firefox_133": Firefox_133,
"opera_89": Opera_89,
"opera_90": Opera_90,
"opera_91": Opera_91,
Expand Down