Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownSpite = errors.New("unknown spite body")
	ErrUnknownJob   = errors.New("unknown job body")
)

Functions

func BuildOneSpites

func BuildOneSpites(spite *implantpb.Spite) *implantpb.Spites

func BuildPingSpite

func BuildPingSpite() *implantpb.Spites

func BuildPipeline

func BuildPipeline(msg proto.Message, tls proto.Message) *lispb.Pipeline

func BuildSpite

func BuildSpite(spite *implantpb.Spite, msg proto.Message) (*implantpb.Spite, error)

func BuildSpites

func BuildSpites(spites []*implantpb.Spite) *implantpb.Spites

Types

type MsgName

type MsgName string
const (
	MsgUnknown          MsgName = "unknown"
	MsgNil              MsgName = "nil"
	MsgEmpty            MsgName = "empty"
	MsgRequest          MsgName = "request"
	MsgResponse         MsgName = "response"
	MsgBlock            MsgName = "block"
	MsgRegister         MsgName = "register"
	MsgUpload           MsgName = consts.ModuleUpload
	MsgDownload         MsgName = consts.ModuleDownload
	MsgCurl             MsgName = consts.ModuleCurl
	MsgExec             MsgName = consts.ModuleExecution
	MsgAck              MsgName = "ack"
	MsgListModule       MsgName = consts.ModuleListModule
	MsgLoadModule       MsgName = consts.ModuleLoadModule
	MsgListAddon        MsgName = consts.ModuleListAddon
	MsgLoadAddon        MsgName = consts.ModuleLoadAddon
	MsgAssemblyResponse MsgName = "assembly_response"
	MsgExecuteAddon     MsgName = consts.ModuleExecuteAddon
	//MsgExecuteSpawn     MsgName = "execute_spawn"
	MsgLs      MsgName = consts.ModuleLs
	MsgNetstat MsgName = consts.ModuleNetstat
	MsgPs      MsgName = consts.ModulePs
	MsgKill    MsgName = consts.ModuleKill
	MsgBypass  MsgName = consts.ModuleBypass
	MsgSysInfo MsgName = "sysinfo"
)

func MessageType

func MessageType(message *implantpb.Spite) MsgName

func (MsgName) String

func (r MsgName) String() string

type SpitesCache

type SpitesCache struct {
	// contains filtered or unexported fields
}

func NewSpitesCache

func NewSpitesCache() *SpitesCache

func (*SpitesCache) Append

func (sc *SpitesCache) Append(spite *implantpb.Spite)

func (*SpitesCache) Build

func (sc *SpitesCache) Build() *implantpb.Spites

func (*SpitesCache) BuildOrEmpty

func (sc *SpitesCache) BuildOrEmpty() *implantpb.Spites

func (*SpitesCache) Len

func (sc *SpitesCache) Len() int

func (*SpitesCache) Reset

func (sc *SpitesCache) Reset()

Jump to

Keyboard shortcuts

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