config

package
v0.0.0-...-f6eb2dc Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const Version = "3.2.0"

Variables

This section is empty.

Functions

func HelpPrompt

func HelpPrompt(options kong.HelpOptions, ctx *kong.Context) error

Types

type Config

type Config struct {
	FileName         string `help:"Input PE file name." name:"file" short:"f"`
	OutputFile       string `help:"Output binary payload file name." name:"out" short:"o"`
	EncodeCount      int    `help:"Number of times to encode the generated reflective payload." name:"encode" short:"e" default:"1"`
	ObfuscationLimit int    `help:"Maximum number of bytes for encoder obfuscation." name:"obfuscate-limit" short:"l" default:"5"`
	UseIAT           bool   `help:"Use IAT API resolver block instead of CRC API resolver block." name:"iat"`
	UseSyscalls      bool   `help:"Perform raw syscalls. (only x64)" name:"sys"`
	ScrapePeHeaders  bool   `help:"Scrape magic byte and DOS stub from PE." name:"scrape"`
	// IgnoreIntegrity  bool   `help:"Ignore PE file integrity check errors." name:"ignore"`
	Verbose bool `help:"Verbose mode." name:"verbose" short:"v"`
	Version kong.VersionFlag
}

Main config struct for parsing the TOML file

func Parse

func Parse() (*Config, error)

ConfigureOptions accepts a flag set and augments it with agentgo-server specific flags. On success, an options structure is returned configured based on the selected flags.

func (*Config) PrintSummary

func (cfg *Config) PrintSummary()

Jump to

Keyboard shortcuts

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