obliquerat

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: 10 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
}

A Handler represents a ObliqueRat protocol handler that simply logs information about connections and the data received.

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 just logs information about data 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