ja3

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 License: OSL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllHashes = "https://ja3er.com/getAllHashesJson"
	AllUas    = "https://ja3er.com/getAllUasJson"
)

Variables

This section is empty.

Functions

func ClientHello added in v1.2.0

func ClientHello(data []byte) (*tls.ClientHelloSpec, error)

func HelloGolang added in v1.1.5

func HelloGolang() *tls.ClientHelloSpec

Default values can be deleted, but otherwise dont delete or change anything, to avoid making a mistake. Using a function prevents modification.

func NewTransport

func NewTransport(spec *tls.ClientHelloSpec) *http.Transport

NewTransport creates an http.Transport which mocks the given JA3 signature when HTTPS is used.

func Parse

func Parse(ja3 string) (*tls.ClientHelloSpec, error)

Parse creates a ClientHelloSpec based on a JA3 string. iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml

Types

type JA3er

type JA3er struct {
	Users  []User
	Hashes []struct {
		MD5 string
		JA3 string
	}
}

func NewJA3er

func NewJA3er(ua, hash io.Reader) (*JA3er, error)

func (JA3er) Find added in v1.1.8

func (j JA3er) Find(callback func(string) error) *User

func (JA3er) JA3

func (j JA3er) JA3(md5 string) string

func (JA3er) SortUsers

func (j JA3er) SortUsers()

type User added in v1.1.8

type User struct {
	MD5   string
	Count int
	Agent string `json:"User-Agent"`
}

Jump to

Keyboard shortcuts

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