payload

package
v0.0.0-...-51e328c Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MODULE_TYPE_CALC       = 1
	MODULE_TYPE_MESSAGEBOX = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Implant

type Implant struct {
	Id               uint
	Uuid             string
	Name             string
	Os               string
	Arch             string
	Format           string
	Lprotocol        string
	Lhost            string
	Lport            uint16
	RequestPaths     ImplantRequestPaths
	Type             string // "beacon", "interactive"
	Sleep            uint
	Jitter           uint
	KillDate         uint
	IndirectSyscalls bool
	AntiDebug        bool
	CompLevel        uint64
}

func NewImplant

func NewImplant(
	id uint,
	_uuid string,
	name string,
	os string,
	arch string,
	format string,
	lprotocol string,
	lhost string,
	lport uint16,
	impType string,
	sleep uint,
	jitter uint,
	killDate uint,
	indirectSyscalls bool,
	antiDebug bool,
	compLevel uint64,
) *Implant

func (*Implant) Generate

func (i *Implant) Generate(serverState *state.ServerState) (data []byte, outFile string, err error)

type ImplantRequestPaths

type ImplantRequestPaths struct {
	CheckIn    string
	TaskGet    string
	TaskResult string
	WebSocket  string
}

type Loader

type Loader struct {
	Id               uint
	Uuid             string
	Name             string
	Os               string
	Arch             string
	Format           string
	Lprotocol        string
	Lhost            string
	Lport            uint16
	Type             string
	PayloadToLoad    string
	Technique        string
	ProcessToInject  string
	IndirectSyscalls bool
	AntiDebug        bool
	CompLevel        uint64
}

func NewLoader

func NewLoader(
	id uint,
	_uuid string,
	name string,
	os string,
	arch string,
	format string,
	lprotocol string,
	lhost string,
	lport uint16,
	ldrType string,
	payloadToLoad string,
	technique string,
	processToInject string,
	indirectSyscalls bool,
	antiDebug bool,
	compLevel uint64,
) *Loader

func (*Loader) Generate

func (l *Loader) Generate(serverState *state.ServerState) (data []byte, outFile string, err error)

type Module

type Module struct {
	Id        uint
	Uuid      string
	Name      string
	Os        string
	Arch      string
	Format    string
	Lprotocol string
	Lhost     string
	Lport     uint16
	Type      string
}

func NewModule

func NewModule(
	id uint,
	_uuid string,
	name string,
	os string,
	arch string,
	format string,
	lprotocol string,
	lhost string,
	lport uint16,
	_type string,
) *Module

func (*Module) Generate

func (m *Module) Generate(serverState *state.ServerState) (data []byte, outFile string, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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