gsniffer

package
v0.0.0-...-f3abbe6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnInfo

type ConnInfo struct {
	Protocol     string // "http1","http2","websocket", "socks5"
	HTTPHeader   http.Header
	HTTPVer      string
	Socks5Target string // "www.google.com:443" "example.com:80"
}

func Sniff

func Sniff(conn net.Conn) (r *ConnInfo, readBuf bytes.Buffer, ok bool)

support: "http1","http2","websocket", "socks5" WARNING: data read by sniffler can't be read from conn again, but sniffer put what it read into readBuf, please handle readBuf manually

Jump to

Keyboard shortcuts

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