builder

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arg

type Arg struct {
	Name  string `yaml:"name,omitempty"`
	Value string `yaml:"value,omitempty"`
}

type Artifact

type Artifact struct {
	Name string `yaml:"name,omitempty"`
	Type string `yaml:"type,omitempty"`
	Args []Arg  `yaml:"args,omitempty"`
}

type Builder

type Builder struct {
	Type               string
	Args               string
	ShellcodeData      string
	ShellcodeLen       string
	Imports            []string
	InstancesCode      []string
	FunctionsCode      []string
	Debug              bool
	IsDLL              bool
	IsService          bool
	ExportNames        string
	OutDirPath         string
	ServiceName        string
	ServiceDisplayName string
	ServiceDescription string
}

type LimeLighterArgs

type LimeLighterArgs struct {
	Domain   string `yaml:"domain"`
	Real     string `yaml:"real"`
	Password string `yaml:"password"`
}

type Payload

type Payload struct {
	Lang               string          `yaml:"lang,omitempty"`
	Arch               string          `yaml:"arch,omitempty"`
	Debug              bool            `yaml:"debug"`
	Type               string          `yaml:"type,omitempty"`
	Sgn                bool            `yaml:"sgn,omitempty"`
	Artifacts          []Artifact      `yaml:"artifacts"`
	Obfuscation        bool            `yaml:"obfuscation"`
	Append             string          `yaml:"append"`
	Prepend            string          `yaml:"prepend"`
	FilePropertiesPath string          `yaml:"file_properties_path"`
	LimeLighterArgs    LimeLighterArgs `yaml:"limelighter"`
	ServiceOptions     ServiceOptions  `yaml:"serviceOptions"`
}

type PayloadConfig

type PayloadConfig struct {
	Payload Payload `yaml:"payload,omitempty"`
}

func NewPayloadConfigFromFile

func NewPayloadConfigFromFile(data []byte) (PayloadConfig, error)

func (*PayloadConfig) GeneratePayload

func (payloadConfig *PayloadConfig) GeneratePayload(filename string, payload []byte, godonut, srdi, keep bool,
	parameters, functionName, class string, clearHeader bool) (string, []byte, error)

func (*PayloadConfig) GenerateSupportedPayload added in v0.2.0

func (payloadConfig *PayloadConfig) GenerateSupportedPayload(filename string, payload []byte, godonut, srdi, keep bool, parameters, functionName, class string, clearHeader bool) (string, []byte, error)

type ServiceOptions added in v0.2.0

type ServiceOptions struct {
	ServiceName        string `yaml:"serviceName"`
	ServiceDisplayName string `yaml:"serviceDisplayName"`
	ServiceDescription string `yaml:"serviceDescription"`
}

Jump to

Keyboard shortcuts

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