Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
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