shapeshifter

package module
v0.0.0-...-36a7d1b Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: BSD-2-Clause, BSD-3-Clause Imports: 11 Imported by: 1

README

ShapeShifter library

Heavily based on the shapeshifter-dispatcher: https://github.com/OperatorFoundation/shapeshifter-dispatcher/

To use it:

	ss := ShapeShifter{
		Cert:      "cert",
		Target:    "ip:port",
		SocksAddr: "127.0.0.1:4430",
	}
	err := ss.Open()
	if err != nil {
		return err
	}
	defer ss.Close()

And now you can tunnel your protocol into 127.0.0.1:4430.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Log(msg string)
}

type Shapeshifter

type Shapeshifter struct {
	Cert      string
	IatMode   int
	Target    string // remote ip:port obfs4 server
	SocksAddr string // -proxylistenaddr in Shapeshifter-dispatcher
	Logger    Logger
	// contains filtered or unexported fields
}

func (*Shapeshifter) Close

func (ss *Shapeshifter) Close() error

func (*Shapeshifter) GetErrorChannel

func (ss *Shapeshifter) GetErrorChannel() chan error

func (*Shapeshifter) Open

func (ss *Shapeshifter) Open() error

Jump to

Keyboard shortcuts

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