Documentation
¶
Index ¶
- func CleanCommand(command string) string
- type CommandExecutor
- type PayloadConfig
- type PayloadFormat
- type PayloadGenerator
- func (p *PayloadGenerator) DecryptPayload(encryptedPayload []byte, password string) ([]byte, error)
- func (p *PayloadGenerator) EncryptPayload(payload []byte, password string) ([]byte, error)
- func (p *PayloadGenerator) GeneratePayload() ([]byte, error)
- func (p *PayloadGenerator) SavePayload(payload []byte, filePath string) error
- type PayloadType
- type Protocol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanCommand ¶
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 )
Click to show internal directories.
Click to hide internal directories.