Skip to content

Commit

Permalink
Update Chrome version with proper ECH (#290)
Browse files Browse the repository at this point in the history
* chore(tls): update Chrome version with proper ECH

* chore(tls): remove debug logs
  • Loading branch information
Noooste authored Jan 31, 2025
1 parent 590f2a2 commit db66bf0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 0 additions & 4 deletions ja3.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,6 @@ func stringToSpec(ja3 string, specifications *TlsSpecifications, navigator strin
}
}

if err != nil {
return nil, err
}

specs.Extensions = extensions
specs.TLSVersMin = uint16(v)
specs.TLSVersMax = maxVers
Expand Down
12 changes: 10 additions & 2 deletions profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func getShuffledExtensions(extensions []tls.TLSExtension) []tls.TLSExtension {
}

// GetLastChromeVersion apply the latest Chrome version
// Current Chrome version : 127
// Current Chrome version : 132
func GetLastChromeVersion() *tls.ClientHelloSpec {
extensions := []tls.TLSExtension{
// &tls.UtlsGREASEExtension{},
Expand Down Expand Up @@ -95,7 +95,15 @@ func GetLastChromeVersion() *tls.ClientHelloSpec {
&tls.SupportedPointsExtension{SupportedPoints: []byte{
0x00, // pointFormatUncompressed
}},
tls.BoringGREASEECH(),
&tls.GREASEEncryptedClientHelloExtension{
CandidateCipherSuites: []tls.HPKESymmetricCipherSuite{
{
KdfId: dicttls.HKDF_SHA256,
AeadId: dicttls.AEAD_AES_128_GCM,
},
},
CandidatePayloadLens: []uint16{128, 160, 192, 224}, // +16: 144, 176, 208, 240
},
// &tls.UtlsGREASEExtension{},
// &tls.UtlsPaddingExtension{GetPaddingLen: tls.BoringPaddingStyle},
}
Expand Down
2 changes: 1 addition & 1 deletion test/ja3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func TestDefaultConfig(t *testing.T) {
session := azuretls.NewSession()

response, err := session.Get("https://tls.peet.ws/api/all")
response, err := session.Get("https://tls.browserleaks.com/")

if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit db66bf0

Please sign in to comment.