obfuscated2

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package obfuscated2 contains obfuscated2 implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata added in v0.50.0

type Metadata struct {
	Protocol [4]byte
	DC       uint16
}

Metadata represents metadata received from header.

func Accept added in v0.50.0

func Accept(conn io.ReadWriter, secret []byte) (io.ReadWriter, Metadata, error)

Accept creates new io.ReadWriter for server-side deobfuscation.

type Obfuscated2

type Obfuscated2 struct {
	// contains filtered or unexported fields
}

Obfuscated2 implements obfuscated2 obfuscation protocol.

func NewObfuscated2

func NewObfuscated2(r io.Reader, conn io.ReadWriter) *Obfuscated2

NewObfuscated2 creates new Obfuscated2.

func (*Obfuscated2) Handshake

func (o *Obfuscated2) Handshake(protocol [4]byte, dc int, s mtproxy.Secret) error

Handshake sends obfuscated2 header.

func (*Obfuscated2) Read

func (o *Obfuscated2) Read(b []byte) (int, error)

Read implements io.Reader.

func (*Obfuscated2) Write

func (o *Obfuscated2) Write(b []byte) (n int, err error)

Write implements io.Writer.

Jump to

Keyboard shortcuts

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