protocol

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delegate

type Delegate interface {
	SendData(data []byte)
	AgentConnected(id string)
	CloseConnection()
}

A Delegate represents an external delegate that the protocolhandler can notify about data being processed.

type Handler

type Handler interface {
	NeedsTLS() bool
	SetDelegate(delegate Delegate)
	Accept()
	ReceiveData(data []byte)
	Execute(name string, args []string)
	Upload(source string, destination string)
	Download(source string, destination string)
	Close()
}

A Handler represents a type capable of handling and decoding C2 traffic.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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