hotcroissant

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler is a HotCroissant protocol handler capable of communicating with the HotCroissant malware family.

func (*Handler) Accept

func (h *Handler) Accept()

Accept gives the Handler a chance to do something as soon as an agent connects.

func (*Handler) Close

func (h *Handler) Close()

Close cleans up any uzed resources.

func (*Handler) Download

func (h *Handler) Download(source string, destination string)

Download retrieves a file from the connected agent.

func (*Handler) Execute

func (h *Handler) Execute(name string, args []string)

Execute runs a command on the connected agent.

func (*Handler) NeedsTLS

func (h *Handler) NeedsTLS() bool

NeedsTLS returns whether the protocol runs over TLS or not.

func (*Handler) ReceiveData

func (h *Handler) ReceiveData(data []byte)

ReceiveData saves the network data and processes it when a full command has been received.

func (*Handler) SetDelegate

func (h *Handler) SetDelegate(delegate protocol.Delegate)

SetDelegate saves the delegate for later use.

func (*Handler) Upload

func (h *Handler) Upload(source string, destination string)

Upload sends a file to the connected agent.

Jump to

Keyboard shortcuts

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