tls

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: OSL-3.0 Imports: 9 Imported by: 0

README

TLS

JA3

ClientHelloSpec does not store the TLS Version for the initial Client Hello, only SupportedVersionsExtension:

https://github.com/refraction-networking/utls/blob/0b2885c8/u_common.go#L114-L117

Then, for the initial Client Hello, TLS version 1.0 is used:

https://github.com/refraction-networking/utls/blob/0b2885c8/conn.go#L944-L948

To solve, we need to make our own struct. Here are some examples:

pcap

First install:

https://github.com/emanuele-f/PCAPdroid

Start app, then change from HTTP Server to PCAP File. Then click start, if prompted to save, choose Downloads. Start Google Chrome and wait for a page to load. Then stop monitoring, and copy file to computer:

adb ls /sdcard/Download
adb pull /sdcard/Download/PCAPdroid_22_Oct_15_19_28.pcap

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handshakes

func Handshakes(data []byte) [][]byte

func NewTransport

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

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 ClientHello added in v1.4.3

type ClientHello struct {
	*tls.ClientHelloSpec
	Version uint16
}

func NewClientHello added in v1.4.3

func NewClientHello(data []byte) (*ClientHello, error)

Jump to

Keyboard shortcuts

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