erase fingerprints (#177)

* add external modules and patches

* migrate pion webrtc to vendored headlessclient, drop local pion replaces

* use chrome ice credentials, one webrtc api per peer connection

* send one user agent everywhere, use the vendored websocket

* route the telemost joiner through headlessclient, drop the dead keylog

* answer telemost dtls without a hello verify round trip

* follow the headlessclient dtls 1.3 mimicry rename

* follow the headless-client rename and apply the profile before the caller settings

* build every webrtc api through relay/headlessapi

* register chrome rtp header extensions for every pion consumer

* dial vk webtransport signaling through the headless quic profile

* dial dion and wb stream through the headless chrome profile

* announce chrome's http/3 settings on the vk webtransport signaling

* send chrome header blocks on bitrix http and livekit websocket

* send chrome's webtransport connect headers on vk signaling

* stop passing invented track names to the library

* move wbp http paths onto the headlessclient profile

* migrate to a published headlessclient

* dedup go.mod
This commit is contained in:
kulikov0 authored and GitHub committed 2026-09-12 20:39:06 +02:00
1 parent 88a0b5f1b9
commit a735b4176e
71 files changed
+571 -2140

No files matched your search

+22 -3
View File
@@ -3,10 +3,12 @@ package main
import (
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"regexp"
"whitelist-bypass/relay/common"
"github.com/kulikov0/headless-client"
)
type TMConfig struct {
@@ -17,7 +19,7 @@ type TMConfig struct {
func fetchConfig() (TMConfig, error) {
var cfg TMConfig
page, err := common.HttpGet("https://telemost.yandex.ru/")
page, err := tmHttpGet("https://telemost.yandex.ru/", headless.DestDocument)
if err != nil {
return cfg, fmt.Errorf("failed to fetch telemost.yandex.ru: %w", err)
}
@@ -52,7 +54,7 @@ func fetchConfig() (TMConfig, error) {
}
log.Printf("[config] Found bundle: %s", bundleURL)
bundle, err := common.HttpGet(bundleURL)
bundle, err := tmHttpGet(bundleURL, headless.DestScript)
if err != nil {
return cfg, fmt.Errorf("failed to fetch bundle: %w", err)
}
@@ -75,3 +77,20 @@ func fetchConfig() (TMConfig, error) {
log.Printf("[config] app=%s sdk=%s", cfg.AppVersion, cfg.SDKVersion)
return cfg, nil
}
func tmHttpGet(endpoint string, dest headless.RequestDest) ([]byte, error) {
request, err := http.NewRequest("GET", endpoint, nil)
if err != nil {
return nil, err
}
request.Header = headless.ChromeWindows.Headers(dest)
if dest == headless.DestScript {
request.Header.Set("Referer", "https://telemost.yandex.ru/")
}
response, err := headless.ChromeWindows.HTTPClient().Do(request)
if err != nil {
return nil, err
}
defer response.Body.Close()
return io.ReadAll(response.Body)
}