servers

package
v0.0.0-...-75a46ef Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: BSD-3-Clause, MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstance

func NewInstance() interface{}

Types

type C2Config

type C2Config struct {
	BindAddress string `json:"bindaddress"`
	SocketURI   string `json:"websocketuri"`
	SSLKey      string `json:"sslkey"`
	SSLCert     string `json:"sslcert"`
	UseSSL      bool   `json:"usessl"`
	Defaultpage string `json:"defaultpage"`
	Logfile     string `json:"logfile"`
	Debug       bool   `json:"debug"`
}

C2Config - struct for server configuration

type Message

type Message struct {
	Tag    string `json:"tag"`
	Client bool   `json:"client"`
	Data   string `json:"data"`
}

Message - struct definition for messages between clients and the server

type Server

type Server interface {
	ApfellBaseURL() string
	SetApfellBaseURL(url string)
	PostResponse(taskid string, output []byte) []byte
	PostMessage(msg []byte) []byte
	GetNextTask(apfellID string) []byte
	Run(cf interface{})
}

Server - interface used for all c2 profiles

Jump to

Keyboard shortcuts

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