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

+8 -6
View File
@@ -12,7 +12,7 @@ import (
"strings"
"time"
"whitelist-bypass/relay/common"
headless "github.com/kulikov0/headless-client"
)
type vkConfig struct {
@@ -32,23 +32,25 @@ type vkCaptchaError struct {
}
func RunVKAuth(joinLink string, displayName string, logFn func(string, ...any), statusFn func(string), cache CacheStore, resolveFn ResolveFunc) (string, error) {
transport := &http.Transport{}
tlsOptions := headless.TLSOptions{}
if resolveFn != nil {
transport.DialContext = func(ctx context.Context, network, addr string) (net.Conn, error) {
tlsOptions.DialContext = func(ctx context.Context, network, addr string) (net.Conn, error) {
host, port, _ := net.SplitHostPort(addr)
resolvedIP, err := resolveFn(host)
if err != nil {
return nil, err
}
return (&net.Dialer{Timeout: 10 * time.Second}).DialContext(ctx, network, resolvedIP+":"+port)
dialer := headless.ChromeDialer()
dialer.Timeout = 10 * time.Second
return dialer.DialContext(ctx, network, resolvedIP+":"+port)
}
}
client := &http.Client{Timeout: 60 * time.Second, Transport: transport}
client := &http.Client{Timeout: 60 * time.Second, Transport: headless.ChromeWindows.Transport(tlsOptions)}
httpPost := func(targetURL string, form url.Values, extraHeaders map[string]string) (map[string]interface{}, error) {
req, _ := http.NewRequest("POST", targetURL, strings.NewReader(form.Encode()))
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
req.Header.Set("User-Agent", common.UserAgent)
req.Header.Set("User-Agent", headless.ChromeWindows.UserAgent())
req.Header.Set("Origin", "https://vk.ru")
req.Header.Set("Referer", "https://vk.ru/")
for k, v := range extraHeaders {