generate

package
v1.4.21 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: GPL-3.0 Imports: 23 Imported by: 4

README

Generate

Implements command related to implant generation such as generate, regenerate, profiles, etc.

Documentation

Index

Constants

View Source
const (
	// DefaultMTLSLPort is the default port for mtls
	DefaultMTLSLPort = 8888
	// DefaultWGPort is the default port for wg
	DefaultWGLPort = 53
	// DefaultWGNPort is the default n port for wg
	DefaultWGNPort = 8888
	// DefaultWGKeyExPort is the default port for wg key exchange
	DefaultWGKeyExPort = 1337
	// DefaultHTTPLPort is the default port for http
	DefaultHTTPLPort = 80
	// DefaultHTTPSLPort is the default port for https
	DefaultHTTPSLPort = 443
	// DefaultDNSLPortis the default port for dns
	DefaultDNSLPort = 53
	// DefaultTCPPivotPort is the default port for tcp pivots
	DefaultTCPPivotPort = 9898

	// DefaultReconnect is the default reconnect time
	DefaultReconnect = 60
	// DefaultPoll is the default poll interval
	DefaultPoll = 1
	// DefaultMaxErrors is the default max reconnection errors before giving up
	DefaultMaxErrors = 1000
)

Variables

View Source
var (
	// SupportedCompilerTargets - Supported compiler targets
	SupportedCompilerTargets = map[string]bool{
		"darwin/amd64":  true,
		"darwin/arm64":  true,
		"linux/386":     true,
		"linux/amd64":   true,
		"windows/386":   true,
		"windows/amd64": true,
	}
)

Functions

func CanariesCmd

func CanariesCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

CanariesCmd - Display canaries from the database and their status

func GenerateCmd

func GenerateCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

GenerateCmd - The main command used to generate implant binaries

func GenerateInfoCmd

func GenerateInfoCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

GenerateInfoCmd - Display information about the Sliver server's compiler configuration

func GenerateStagerCmd

func GenerateStagerCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

GenerateStagerCmd - Generate a stager using Metasploit

func GetImplantProfileByName

func GetImplantProfileByName(name string, con *console.SliverConsoleClient) *clientpb.ImplantProfile

func GetSliverBinary

func GetSliverBinary(profile *clientpb.ImplantProfile, con *console.SliverConsoleClient) ([]byte, error)

GetSliverBinary - Get the binary of an implant based on it's profile

func ImplantsCmd

func ImplantsCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

ImplantsCmd - Displays archived implant builds

func ImplantsRmCmd

func ImplantsRmCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

ImplantsRmCmd - Deletes an archived implant build from the server

func ProfilesCmd

func ProfilesCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

ProfilesCmd - Display implant profiles

func ProfilesGenerateCmd

func ProfilesGenerateCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

ProfilesGenerateCmd - Generate an implant binary based on a profile

func ProfilesNewCmd

func ProfilesNewCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

ProfilesNewCmd - Create a new implant profile

func ProfilesRmCmd

func ProfilesRmCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

ProfilesRmCmd - Delete an implant profile

func RegenerateCmd

func RegenerateCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

RegenerateCmd - Download an archived implant build/binary

Types

This section is empty.

Jump to

Keyboard shortcuts

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