presets

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package presets bundles known-good (JA3, HTTP/2) fingerprint pairs that can be passed to fetch.WithJA3 / fetch.WithHTTP2Fingerprint.

Pairs here are representative captures from real browsers — recent enough to blend with current traffic, but anti-bot vendors update their classifiers faster than this file is updated. For high-stakes targets, capture your own from https://tls.peet.ws and pass via fetch.WithJA3 directly.

All values use the format documented by azuretls-client:

JA3:    SSLVersion,Ciphers,Extensions,EllipticCurves,EllipticCurvePointFormats
HTTP/2: <SETTINGS>|<WINDOW_UPDATE>|<PRIORITY>|<PSEUDO_HEADER>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JA3Pool

func JA3Pool(bundles []Bundle) []string

JA3Pool returns just the JA3 strings from the supplied bundles, in input order. Convenience for fetch.WithJA3Pool(presets.JA3Pool(presets.All())).

Types

type Bundle

type Bundle struct {
	Name    string
	Browser string
	JA3     string
	HTTP2   string
}

Bundle is a (JA3, HTTP/2) pair captured from a real browser. The Browser field is the azuretls family ("firefox", "chrome", "safari") and is what azuretls.Session.ApplyJa3 inherits its non-JA3 defaults from.

func All

func All() []Bundle

All returns every curated bundle. Useful as input to fetch.WithJA3Pool when you want the broadest possible JA3 spread per fetcher recycle.

func ChromeLatest

func ChromeLatest() Bundle

ChromeLatest returns a representative Chrome 131 fingerprint pair.

func FirefoxLatest

func FirefoxLatest() Bundle

FirefoxLatest returns a representative Firefox 135 fingerprint pair.

func SafariLatest

func SafariLatest() Bundle

SafariLatest returns a representative Safari 17 (iOS/macOS) fingerprint pair.

Jump to

Keyboard shortcuts

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