Skip to content

Commit a38ecef

Browse files
committed
chore(tls): update Chrome version with proper ECH
1 parent 590f2a2 commit a38ecef

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

ja3.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,6 @@ func stringToSpec(ja3 string, specifications *TlsSpecifications, navigator strin
225225
}
226226
}
227227

228-
if err != nil {
229-
return nil, err
230-
}
231-
232228
specs.Extensions = extensions
233229
specs.TLSVersMin = uint16(v)
234230
specs.TLSVersMax = maxVers

profiles.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func getShuffledExtensions(extensions []tls.TLSExtension) []tls.TLSExtension {
4444
}
4545

4646
// GetLastChromeVersion apply the latest Chrome version
47-
// Current Chrome version : 127
47+
// Current Chrome version : 132
4848
func GetLastChromeVersion() *tls.ClientHelloSpec {
4949
extensions := []tls.TLSExtension{
5050
// &tls.UtlsGREASEExtension{},
@@ -95,7 +95,15 @@ func GetLastChromeVersion() *tls.ClientHelloSpec {
9595
&tls.SupportedPointsExtension{SupportedPoints: []byte{
9696
0x00, // pointFormatUncompressed
9797
}},
98-
tls.BoringGREASEECH(),
98+
&tls.GREASEEncryptedClientHelloExtension{
99+
CandidateCipherSuites: []tls.HPKESymmetricCipherSuite{
100+
{
101+
KdfId: dicttls.HKDF_SHA256,
102+
AeadId: dicttls.AEAD_AES_128_GCM,
103+
},
104+
},
105+
CandidatePayloadLens: []uint16{128, 160, 192, 224}, // +16: 144, 176, 208, 240
106+
},
99107
// &tls.UtlsGREASEExtension{},
100108
// &tls.UtlsPaddingExtension{GetPaddingLen: tls.BoringPaddingStyle},
101109
}

test/ja3_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package azuretls_test
22

33
import (
4+
"fmt"
45
"github.com/Noooste/azuretls-client"
56
"log"
67
"os"
@@ -12,7 +13,7 @@ import (
1213
func TestDefaultConfig(t *testing.T) {
1314
session := azuretls.NewSession()
1415

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

1718
if err != nil {
1819
t.Fatal(err)
@@ -21,6 +22,8 @@ func TestDefaultConfig(t *testing.T) {
2122
if response.StatusCode != 200 {
2223
t.Fatal("Expected 200")
2324
}
25+
26+
fmt.Println(string(response.Body))
2427
}
2528

2629
func TestChrome(t *testing.T) {

0 commit comments

Comments
 (0)