tcp

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MPL-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FETAnalyzer

type FETAnalyzer struct{}

FETAnalyzer stands for "Fully Encrypted Traffic" analyzer. It implements an algorithm to detect fully encrypted proxy protocols such as Shadowsocks, mentioned in the following paper: https://gfw.report/publications/usenixsecurity23/data/paper/paper.pdf

func (*FETAnalyzer) Limit

func (a *FETAnalyzer) Limit() int

func (*FETAnalyzer) Name

func (a *FETAnalyzer) Name() string

func (*FETAnalyzer) NewTCP

func (a *FETAnalyzer) NewTCP(info analyzer.TCPInfo, logger analyzer.Logger) analyzer.TCPStream

type HTTPAnalyzer

type HTTPAnalyzer struct{}

func (*HTTPAnalyzer) Limit

func (a *HTTPAnalyzer) Limit() int

func (*HTTPAnalyzer) Name

func (a *HTTPAnalyzer) Name() string

func (*HTTPAnalyzer) NewTCP

func (a *HTTPAnalyzer) NewTCP(info analyzer.TCPInfo, logger analyzer.Logger) analyzer.TCPStream

type SSHAnalyzer

type SSHAnalyzer struct{}

func (*SSHAnalyzer) Limit

func (a *SSHAnalyzer) Limit() int

func (*SSHAnalyzer) Name

func (a *SSHAnalyzer) Name() string

func (*SSHAnalyzer) NewTCP

func (a *SSHAnalyzer) NewTCP(info analyzer.TCPInfo, logger analyzer.Logger) analyzer.TCPStream

type TLSAnalyzer

type TLSAnalyzer struct{}

func (*TLSAnalyzer) Limit

func (a *TLSAnalyzer) Limit() int

func (*TLSAnalyzer) Name

func (a *TLSAnalyzer) Name() string

func (*TLSAnalyzer) NewTCP

func (a *TLSAnalyzer) NewTCP(info analyzer.TCPInfo, logger analyzer.Logger) analyzer.TCPStream

type TrojanAnalyzer added in v0.0.2

type TrojanAnalyzer struct{}

TrojanAnalyzer uses a very simple packet length based check to determine if a TLS connection is actually the Trojan proxy protocol. The algorithm is from the following project, with small modifications: https://github.com/XTLS/Trojan-killer Warning: Experimental only. This method is known to have significant false positives and false negatives.

func (*TrojanAnalyzer) Limit added in v0.0.2

func (a *TrojanAnalyzer) Limit() int

func (*TrojanAnalyzer) Name added in v0.0.2

func (a *TrojanAnalyzer) Name() string

func (*TrojanAnalyzer) NewTCP added in v0.0.2

Jump to

Keyboard shortcuts

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