config

package
v0.0.0-...-dde02fa Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 4 Imported by: 0

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