Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedVersion = errors.New("mimic: unsupported version")
)
View Source
var (
PlatformWindows platform = "win"
)
View Source
var TlsCipherMap = map[string]uint16{ "4865": utls.TLS_AES_128_GCM_SHA256, "4866": utls.TLS_AES_256_GCM_SHA384, "4867": utls.TLS_CHACHA20_POLY1305_SHA256, "49195": utls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, "49199": utls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, "49196": utls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, "49200": utls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, "52393": utls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305, "52392": utls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305, "49188": utls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, "49171": utls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, "49172": utls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, "156": utls.TLS_RSA_WITH_AES_128_GCM_SHA256, "157": utls.TLS_RSA_WITH_AES_256_GCM_SHA384, "47": utls.TLS_RSA_WITH_AES_128_CBC_SHA, "53": utls.TLS_RSA_WITH_AES_256_CBC_SHA, "49162": utls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, "49161": utls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, "51": utls.TLS_DHE_RSA_WITH_AES_128_CBC_SHA, "43": utls.TLS_KRB5_EXPORT_WITH_RC4_40_MD5, "57": utls.TLS_DHE_RSA_WITH_AES_256_CBC_SHA, "10": utls.TLS_RSA_WITH_3DES_EDE_CBC_SHA, "49187": utls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, "49192": utls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, "49191": utls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, "61": utls.TLS_RSA_WITH_AES_256_CBC_SHA256, "60": utls.TLS_RSA_WITH_AES_128_CBC_SHA256, "49160": utls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, "49170": utls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, }
4865-4866-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53
Functions ¶
func GetLatestVersion ¶
GetLatestVersion returns the latest version of Chrome for the given platform.
func MatchJa3String ¶
func MatchJa3String(ja3 string) (utls.ClientHelloSpec, error)
func MustGetLatestVersion ¶
func MustGetLatestVersion(pf platform) string
MustGetLatestVersion is like GetLatestVersion but panics on error.
Types ¶
type ClientSpec ¶
type ClientSpec struct {
// contains filtered or unexported fields
}
func (*ClientSpec) ClientHintUA ¶
func (c *ClientSpec) ClientHintUA() string
ClientHintUA returns the "sec-ch-ua" header value for the mimicked client.
func (*ClientSpec) ConfigureTransport ¶
func (c *ClientSpec) ConfigureTransport(t1 *http.Transport) *http.Transport
ConfigureTransport configures a http.Transport to follow the client's spec Returns the given Transport for convenience
func (*ClientSpec) PseudoHeaderOrder ¶
func (c *ClientSpec) PseudoHeaderOrder() []string
PseudoHeaderOrder returns the pseudo header order for the mimicked client.
func (*ClientSpec) Version ¶
func (c *ClientSpec) Version() string
Version returns the version for the mimicked client..
Click to show internal directories.
Click to hide internal directories.