fingerprint

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Available

func Available() []string

Available returns a list of available preset names

Types

type HTTP2Settings

type HTTP2Settings struct {
	HeaderTableSize      uint32
	EnablePush           bool
	MaxConcurrentStreams uint32
	InitialWindowSize    uint32
	MaxFrameSize         uint32
	MaxHeaderListSize    uint32
	// Window update and stream settings
	ConnectionWindowUpdate uint32
	StreamWeight           uint16 // Chrome uses 256
	StreamExclusive        bool
}

HTTP2Settings contains HTTP/2 connection settings

type PlatformInfo

type PlatformInfo struct {
	UserAgentOS        string // e.g., "(Windows NT 10.0; Win64; x64)" or "(X11; Linux x86_64)"
	Platform           string // e.g., "Windows", "Linux", "macOS"
	Arch               string // e.g., "x86", "arm"
	PlatformVersion    string // e.g., "10.0.0", "6.12.0", "14.7.0"
	FirefoxUserAgentOS string // Firefox has slightly different format
}

PlatformInfo contains platform-specific header values

func GetPlatformInfo

func GetPlatformInfo() PlatformInfo

GetPlatformInfo returns platform-specific info based on runtime OS

type Preset

type Preset struct {
	Name          string
	ClientHelloID tls.ClientHelloID
	UserAgent     string
	Headers       map[string]string
	HTTP2Settings HTTP2Settings
	SupportHTTP3  bool
}

Preset represents a browser fingerprint configuration

func Chrome131

func Chrome131() *Preset

Chrome131 returns the Chrome 131 fingerprint preset

func Chrome133

func Chrome133() *Preset

Chrome133 returns the Chrome 133 fingerprint preset

func Chrome141

func Chrome141() *Preset

Chrome141 returns the Chrome 141 fingerprint preset (latest)

func Chrome143

func Chrome143() *Preset

Chrome143 returns the Chrome 143 fingerprint preset

func Chrome143Windows

func Chrome143Windows() *Preset

Chrome143Windows returns Chrome 143 with Windows platform

func Firefox133

func Firefox133() *Preset

Firefox133 returns the Firefox 133 fingerprint preset

func Get

func Get(name string) *Preset

Get returns a preset by name, or Chrome143 as default

func Safari18

func Safari18() *Preset

Safari18 returns the Safari 18 fingerprint preset Note: Safari is macOS-only, so no platform detection needed

Jump to

Keyboard shortcuts

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