obfuscated2

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 7 Imported by: 1 module, 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

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

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

Metadata represents metadata received from header.

func Accept

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