system

package
v0.0.0-...-8483bd9 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanCommand

func CleanCommand(command string) string

Types

type CommandExecutor

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

func NewCommandExecutor

func NewCommandExecutor() *CommandExecutor

func (*CommandExecutor) Execute

func (ce *CommandExecutor) Execute(command string) ([]byte, error)

func (*CommandExecutor) RegisterCommand

func (ce *CommandExecutor) RegisterCommand(name string, handler func(string) ([]byte, error))

type PayloadConfig

type PayloadConfig struct {
	Type           PayloadType
	Format         PayloadFormat
	Host           string
	Port           int
	Protocol       Protocol
	Secure         bool
	Staged         bool
	Architecture   string
	Platform       string
	Obfuscate      bool
	SecurityConfig *security.SecurityManager
}

func DefaultPayloadConfig

func DefaultPayloadConfig() *PayloadConfig

type PayloadFormat

type PayloadFormat int
const (
	RawFormat PayloadFormat = iota

	HexFormat

	Base64Format

	CFormat

	PythonFormat

	PowerShellFormat
)

type PayloadGenerator

type PayloadGenerator struct {
	Config *PayloadConfig
	// contains filtered or unexported fields
}

func NewPayloadGenerator

func NewPayloadGenerator(config *PayloadConfig) *PayloadGenerator

func (*PayloadGenerator) DecryptPayload

func (p *PayloadGenerator) DecryptPayload(encryptedPayload []byte, password string) ([]byte, error)

func (*PayloadGenerator) EncryptPayload

func (p *PayloadGenerator) EncryptPayload(payload []byte, password string) ([]byte, error)

func (*PayloadGenerator) GeneratePayload

func (p *PayloadGenerator) GeneratePayload() ([]byte, error)

func (*PayloadGenerator) SavePayload

func (p *PayloadGenerator) SavePayload(payload []byte, filePath string) error

type PayloadType

type PayloadType int
const (
	ShellcodePayload PayloadType = iota

	ExecutablePayload

	ScriptPayload

	DLLPayload
)

type Protocol

type Protocol int
const (
	TCP Protocol = iota

	UDP

	HTTP

	HTTPS

	DNS
)

Jump to

Keyboard shortcuts

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