listeners

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package listeners houses listeners for various protocols to receive, handle, and return Agent traffic

Index

Constants

View Source
const (
	UNKNOWN = 0
	HTTP    = 1 // HTTP is a constant for all HTTP listener types (e.g., HTTP/1, HTTP/2, and HTTP/3)
	TCP     = 2 // TCP is a constant for TCP bind & reverse listeners
	UDP     = 3 // UDP is a constant for UDP bind & reverse listeners
	SMB     = 4 // SMB is a constant for SMB named pipe bind & reverse listeners
)

Variables

This section is empty.

Functions

func FromString

func FromString(kind string) int

FromString converts a string representation of the Listener type, or kind, to a constant

func Listeners

func Listeners() []int

func String

func String(kind int) string

Types

type Listener

type Listener interface {
	Addr() string
	Authenticator() authenticators.Authenticator
	Authenticate(id uuid.UUID, data interface{}) (messages.Base, error)
	ConfiguredOptions() map[string]string
	Construct(msg messages.Base, key []byte) (data []byte, err error)
	Deconstruct(data, key []byte) (messages.Base, error)
	Description() string
	ID() uuid.UUID
	Name() string
	Options() map[string]string
	Protocol() int
	PSK() string
	Server() *servers.ServerInterface
	Status() string
	Transformers() []transformer.Transformer
}

Listener is an interface that contains all the functions any Agent listener must implement

Directories

Path Synopsis
Package http contains structures and repositories to create, store, and manage HTTP based Agent listeners
Package http contains structures and repositories to create, store, and manage HTTP based Agent listeners
memory
Package memory is an in-memory database used to store and retrieve HTTP listeners
Package memory is an in-memory database used to store and retrieve HTTP listeners
smb
Package smb contains the structures and interface for peer-to-peer communications through an SMB bind listener used for Agent communications SMB listener's do not have a server because the Merlin Server does not send/receive messages.
Package smb contains the structures and interface for peer-to-peer communications through an SMB bind listener used for Agent communications SMB listener's do not have a server because the Merlin Server does not send/receive messages.
memory
Package memory is an in-memory database used to store and retrieve SMB listeners
Package memory is an in-memory database used to store and retrieve SMB listeners
tcp
Package tcp contains the structures and interface for peer-to-peer communications through a TCP bind listener used for Agent communications TCP listener's do not have a server because the Merlin Server does not send/receive messages.
Package tcp contains the structures and interface for peer-to-peer communications through a TCP bind listener used for Agent communications TCP listener's do not have a server because the Merlin Server does not send/receive messages.
memory
Package memory is an in-memory database used to store and retrieve TCP listeners
Package memory is an in-memory database used to store and retrieve TCP listeners
udp
Package udp contains the structures and interface for peer-to-peer communications through a UDP bind listener used for Agent communications UDP listener's do not have a server because the Merlin Server does not send/receive messages.
Package udp contains the structures and interface for peer-to-peer communications through a UDP bind listener used for Agent communications UDP listener's do not have a server because the Merlin Server does not send/receive messages.
memory
Package memory is an in-memory database used to store and retrieve UDP listeners
Package memory is an in-memory database used to store and retrieve UDP listeners

Jump to

Keyboard shortcuts

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