pivotclients

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedWrite = errors.New("write failed")
)

Functions

This section is empty.

Types

type NamedPipePivotOptions

type NamedPipePivotOptions struct {
	Timeout       time.Duration
	ReadDeadline  time.Duration
	WriteDeadline time.Duration
}

NamedPipePivotOptions - Options for the NamedPipe pivot

func ParseNamedPipePivotOptions

func ParseNamedPipePivotOptions(uri *url.URL) *NamedPipePivotOptions

ParseNamedPipePivotOptions - Parse the options for the TCP pivot from a C2 URL

type NetConnPivotClient

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

NetConnPivotClient - A generic net.Conn pivot client

func NamedPipePivotStartSession

func NamedPipePivotStartSession(_ string, _ *NamedPipePivotOptions) (*NetConnPivotClient, error)

NamedPipePivotStartSession - Non windows implementation of the named pipe client

func TCPPivotStartSession

func TCPPivotStartSession(peer string, opts *TCPPivotOptions) (*NetConnPivotClient, error)

TCPPivotStartSession - Start a TCP pivot session with a peer

func (*NetConnPivotClient) CloseSession

func (p *NetConnPivotClient) CloseSession() error

CloseSession - Close the TCP pivot session

func (*NetConnPivotClient) KeyExchange

func (p *NetConnPivotClient) KeyExchange() error

KeyExchange - Perform the key exchange with peer and then the upstream server

func (*NetConnPivotClient) ReadEnvelope

func (p *NetConnPivotClient) ReadEnvelope() (*pb.Envelope, error)

ReadEnvelope - Read a complete envelope

func (*NetConnPivotClient) WriteEnvelope

func (p *NetConnPivotClient) WriteEnvelope(envelope *pb.Envelope) error

WriteEnvelope - Write a complete envelope

type TCPPivotOptions

type TCPPivotOptions struct {
	ReadDeadline  time.Duration
	WriteDeadline time.Duration
}

TCPPivotOptions - Options for the TCP pivot

func ParseTCPPivotOptions

func ParseTCPPivotOptions(uri *url.URL) *TCPPivotOptions

ParseTCPPivotOptions - Parse the options for the TCP pivot from a C2 URL

Jump to

Keyboard shortcuts

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