tls

package
v1.4.2 Latest Latest
Warning

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

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

README

TLS

Modules

Types

  1. https://godocs.io/io#Reader
  2. https://godocs.io/github.com/refraction-networking/utls#ClientHelloSpec
  3. https://godocs.io/net/http#Transport

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 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 Handshake

type Handshake []byte

func Decode

func Decode(s string) (Handshake, error)

func Handshakes

func Handshakes(data []byte) []Handshake

func (Handshake) ClientHello

func (h Handshake) ClientHello() (*tls.ClientHelloSpec, error)

Jump to

Keyboard shortcuts

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