Help us shape the future of Go! Take the 2026 Go Developer Survey

build

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AntiFlagSet added in v0.1.2

func AntiFlagSet(f *pflag.FlagSet)

AntiFlagSet Anti flags

func ArtifactShowCmd added in v0.1.1

func ArtifactShowCmd(cmd *cobra.Command, con *core.Console) error

func BeaconCmd

func BeaconCmd(cmd *cobra.Command, con *core.Console) error

func BeaconFlagSet added in v0.1.2

func BeaconFlagSet(f *pflag.FlagSet)

BeaconFlagSet 定义所有构建相关的flag

func BindCmd

func BindCmd(cmd *cobra.Command, con *core.Console) error

func BuildInputFlagSet added in v0.3.0

func BuildInputFlagSet(f *pflag.FlagSet)

BuildInputFlagSet defines file input flags for beacon/bind builds. Includes all four input flags: --implant-path, --prelude-path, --resources-path, --archive-path.

func BuildLogCmd

func BuildLogCmd(cmd *cobra.Command, con *core.Console) error

func BuildModuleMaleficConfig added in v0.3.0

func BuildModuleMaleficConfig(modules, thirdModules []string) ([]byte, error)

func CheckSource added in v0.1.2

func CheckSource(con *core.Console, buildConfig *clientpb.BuildConfig) (string, error)

func Commands

func Commands(con *core.Console) []*cobra.Command

func DeleteArtifact added in v0.1.0

func DeleteArtifact(con *core.Console, name string) (bool, error)

func DeleteArtifactCmd added in v0.1.0

func DeleteArtifactCmd(cmd *cobra.Command, con *core.Console) error

func DgaFlagSet added in v0.1.2

func DgaFlagSet(f *pflag.FlagSet)

DgaFlagSet DGA flags

func DownloadArtifact

func DownloadArtifact(con *core.Console, name string, format string, rdi string) (*clientpb.Artifact, error)

func DownloadArtifactCmd

func DownloadArtifactCmd(cmd *cobra.Command, con *core.Console) error

Some optimization is needed.

func ExecuteBuild added in v0.3.0

func ExecuteBuild(con *core.Console, buildConfig *clientpb.BuildConfig) error

ExecuteBuild executes the build logic.

func GuardrailFlagSet added in v0.1.2

func GuardrailFlagSet(f *pflag.FlagSet)

func ImplantInputFlagSet added in v0.3.0

func ImplantInputFlagSet(f *pflag.FlagSet)

ImplantInputFlagSet defines the implant-path flag for pulse builds.

func ListArtifactCmd

func ListArtifactCmd(cmd *cobra.Command, con *core.Console) error

func ModuleFlagSet added in v0.1.2

func ModuleFlagSet(f *pflag.FlagSet)

BeaconFlagSet 定义所有构建相关的flag

func ModulesCmd

func ModulesCmd(cmd *cobra.Command, con *core.Console) error

func OllvmFlagSet added in v0.1.2

func OllvmFlagSet(f *pflag.FlagSet)

func PreludeCmd

func PreludeCmd(cmd *cobra.Command, con *core.Console) error

func PreludeInputFlagSet added in v0.3.0

func PreludeInputFlagSet(f *pflag.FlagSet)

PreludeInputFlagSet defines file input flags for prelude builds. Includes --prelude-path, --resources-path, --archive-path (no --implant-path).

func PrintArtifacts

func PrintArtifacts(artifacts *clientpb.Artifacts, con *core.Console) error

func ProfileDeleteCmd added in v0.1.0

func ProfileDeleteCmd(cmd *cobra.Command, con *core.Console) error

func ProfileDetailCmd added in v0.3.0

func ProfileDetailCmd(cmd *cobra.Command, con *core.Console) error

func ProfileLoadCmd added in v0.1.0

func ProfileLoadCmd(cmd *cobra.Command, con *core.Console) error

func ProfileNewCmd

func ProfileNewCmd(cmd *cobra.Command, con *core.Console) error

func ProfileShowCmd

func ProfileShowCmd(cmd *cobra.Command, con *core.Console) error

func ProxyFlagSet added in v0.1.2

func ProxyFlagSet(f *pflag.FlagSet)

func PulseCmd

func PulseCmd(cmd *cobra.Command, con *core.Console) error

func PulseFlagSet added in v0.1.2

func PulseFlagSet(f *pflag.FlagSet)

func Register

func Register(con *core.Console)

func SearchArtifact added in v0.1.0

func SearchArtifact(con *core.Console, pipeline, typ, format, os, arch string) (*clientpb.Artifact, error)

func UploadArtifact

func UploadArtifact(con *core.Console, path string, name, artifactType string, comment string) (*clientpb.Artifact, error)

func UploadArtifactCmd

func UploadArtifactCmd(cmd *cobra.Command, con *core.Console) error

func ValidateOutputType added in v0.3.0

func ValidateOutputType(buildConfig *clientpb.BuildConfig, libFlag bool, libFlagChanged bool, shellcodeFlag bool) error

ValidateOutputType validates output type flags and sets buildConfig.OutputType. OutputType values: "" (executable, default), "lib" (dll/so/dylib), "shellcode" (raw .bin, pulse only)

func WriteOriginArtifact added in v0.1.2

func WriteOriginArtifact(con *core.Console, name string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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