ja3

package
v0.0.0-...-8165ed3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnectDialer

func NewConnectDialer(proxyURLStr string, UserAgent string) (proxy.ContextDialer, error)

newConnectDialer creates a dialer to issue CONNECT requests and tunnel traffic via HTTP/S proxy. proxyUrlStr must provide Scheme and Host, may provide credentials and port. Example: https://username:password@golang.org:443

func NewJA3Transport

func NewJA3Transport(browser Browser, proxyURL string, config *utls.Config) (http.RoundTripper, error)

func StringToSpec

func StringToSpec(ja3 string, userAgent string) (*utls.ClientHelloSpec, error)

StringToSpec creates a ClientHelloSpec based on a JA3 string

Types

type Browser

type Browser struct {
	JA3       string
	UserAgent string
}

type ContextKeyHeader

type ContextKeyHeader struct{}

ContextKeyHeader Users of context.WithValue should define their own types for keys

type JA3Transport

type JA3Transport struct {
	sync.Mutex

	JA3             string
	UserAgent       string
	TLSClientConfig *utls.Config
	// contains filtered or unexported fields
}

func (*JA3Transport) RoundTrip

func (rt *JA3Transport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL