profiles

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = structs.Defaultconfig{
	"encrypted_exchange_check",
	"AESPSK",
	"callback_host:callback_port/",
	"post_uri",
	"get_uri",
	"query_path_name",
	"proxy_host:proxy_port/",
	"proxy_user",
	"proxy_pass",
	"USER_AGENT",
	callback_interval,
	"domain_front",
	callback_jitter,
}

Functions

This section is empty.

Types

type C2Default

type C2Default struct {
	HostHeader     string
	BaseURL        string
	PostURI        string
	GetURI         string
	QueryPathName  string
	ProxyURL       string
	ProxyUser      string
	ProxyPass      string
	Interval       int
	Jitter         int
	ExchangingKeys bool
	ApfellID       string
	UserAgent      string
	UUID           string
	Key            string
	RsaPrivateKey  *rsa.PrivateKey
}

func (C2Default) ApfID

func (c C2Default) ApfID() string

func (*C2Default) CheckIn

func (c *C2Default) CheckIn(ip string, pid int, user string, host string, operatingsystem string, arch string) interface{}

CheckIn a new agent

func (*C2Default) GetFile

func (c *C2Default) GetFile(task structs.Task, fileDetails structs.FileUploadParams, ch chan []byte)

func (*C2Default) GetTasking

func (c *C2Default) GetTasking() interface{}

GetTasking - retrieve new tasks

func (*C2Default) NegotiateKey

func (c *C2Default) NegotiateKey() string

NegotiateKey - EKE key negotiation

func (*C2Default) PostResponse

func (c *C2Default) PostResponse(output []byte, skipChunking bool) []byte

PostResponse - Post task responses

func (C2Default) ProfileType

func (c C2Default) ProfileType() string

func (*C2Default) SendFile

func (c *C2Default) SendFile(task structs.Task, params string, ch chan []byte)

SendFile - download a file

func (*C2Default) SendFileChunks

func (c *C2Default) SendFileChunks(task structs.Task, fileData []byte, ch chan []byte)

SendFileChunks - Helper function to deal with file chunks (screenshots and file downloads)

func (*C2Default) SetApfellID

func (c *C2Default) SetApfellID(newApf string)

func (*C2Default) SetSleepInterval

func (c *C2Default) SetSleepInterval(interval int)

func (*C2Default) SetSleepJitter

func (c *C2Default) SetSleepJitter(jitter int)

func (C2Default) SleepInterval

func (c C2Default) SleepInterval() int

Jump to

Keyboard shortcuts

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