Documentation ¶
Index ¶
- Constants
- Variables
- func ArchCompleter(con *console.SliverClient) carapace.Action
- func CanariesCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func Commands(con *console.SliverClient) []*cobra.Command
- func DisplayTrafficEncoders(encoderMap *clientpb.TrafficEncoderMap, con *console.SliverClient)
- func FormatCompleter() carapace.Action
- func GenerateBeaconCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func GenerateCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func GenerateInfoCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func GenerateStagerCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func GetImplantProfileByName(name string, con *console.SliverClient) *clientpb.ImplantProfile
- func GetSliverBinary(profile *clientpb.ImplantProfile, con *console.SliverClient) ([]byte, error)
- func HTTPC2Completer(con *console.SliverClient) carapace.Action
- func ImplantBuildByName(name string, con *console.SliverClient) *clientpb.ImplantConfig
- func ImplantBuildNameCompleter(con *console.SliverClient) carapace.Action
- func ImplantsCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ImplantsRmCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ImplantsStageCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func OSCompleter(con *console.SliverClient) carapace.Action
- func ParseDNSc2(args string) ([]*clientpb.ImplantC2, error)
- func ParseHTTPc2(args string) ([]*clientpb.ImplantC2, error)
- func ParseMTLSc2(args string) ([]*clientpb.ImplantC2, error)
- func ParseNamedPipec2(args string) ([]*clientpb.ImplantC2, error)
- func ParseTCPPivotc2(args string) ([]*clientpb.ImplantC2, error)
- func ParseWGc2(args string) ([]*clientpb.ImplantC2, error)
- func PrintCanaries(con *console.SliverClient, canaries []*clientpb.DNSCanary, burnedOnly bool)
- func PrintImplantBuilds(builds *clientpb.ImplantBuilds, filters ImplantBuildFilter, ...)
- func PrintProfileInfo(name string, con *console.SliverClient)
- func PrintProfiles(profiles []*clientpb.ImplantProfile, con *console.SliverClient)
- func ProfileNameCompleter(con *console.SliverClient) carapace.Action
- func ProfilesCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ProfilesGenerateCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ProfilesNewBeaconCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ProfilesNewCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ProfilesRmCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ProfilesStageCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func RegenerateCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func SelectTrafficEncoder(con *console.SliverClient) string
- func TrafficEncodersAddCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func TrafficEncodersCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func TrafficEncodersCompleter(con *console.SliverClient) carapace.Action
- func TrafficEncodersRemoveCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- type ImplantBuildFilter
Constants ¶
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 // DefaultPollTimeout is the default poll timeout. DefaultPollTimeout = 360 // 6 minutes // DefaultMaxErrors is the default max reconnection errors before giving up. DefaultMaxErrors = 1000 )
Variables ¶
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, } ErrNoExternalBuilder = errors.New("no external builders are available") ErrNoValidBuilders = errors.New("no valid external builders for target") )
var (
ErrBeaconIntervalTooShort = fmt.Errorf("beacon interval must be %v or greater", minBeaconInterval)
)
Functions ¶
func ArchCompleter ¶
func ArchCompleter(con *console.SliverClient) carapace.Action
FormatCompleter completes builds' architectures.
func CanariesCmd ¶
func CanariesCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
CanariesCmd - Display canaries from the database and their status.
func Commands ¶
func Commands(con *console.SliverClient) []*cobra.Command
Commands returns the “ command and its subcommands.
func DisplayTrafficEncoders ¶
func DisplayTrafficEncoders(encoderMap *clientpb.TrafficEncoderMap, con *console.SliverClient)
DisplayTrafficEncoders - Display traffic encoders map from server.
func FormatCompleter ¶
FormatCompleter completes build formats.
func GenerateBeaconCmd ¶
func GenerateBeaconCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
GenerateBeaconCmd - The main command used to generate implant binaries
func GenerateCmd ¶
func GenerateCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
GenerateCmd - The main command used to generate implant binaries
func GenerateInfoCmd ¶
func GenerateInfoCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
GenerateInfoCmd - Display information about the Sliver server's compiler configuration.
func GenerateStagerCmd ¶
func GenerateStagerCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
GenerateStagerCmd - Generate a stager using Metasploit.
func GetImplantProfileByName ¶
func GetImplantProfileByName(name string, con *console.SliverClient) *clientpb.ImplantProfile
GetImplantProfileByName - Get an implant profile by a specific name.
func GetSliverBinary ¶
func GetSliverBinary(profile *clientpb.ImplantProfile, con *console.SliverClient) ([]byte, error)
GetSliverBinary - Get the binary of an implant based on it's profile.
func HTTPC2Completer ¶
func HTTPC2Completer(con *console.SliverClient) carapace.Action
HTTPC2Completer - Completes the HTTP C2 PROFILES
func ImplantBuildByName ¶
func ImplantBuildByName(name string, con *console.SliverClient) *clientpb.ImplantConfig
ImplantBuildByName - Get an implant build by name.
func ImplantBuildNameCompleter ¶
func ImplantBuildNameCompleter(con *console.SliverClient) carapace.Action
ImplantBuildNameCompleter - Completer for implant build names.
func ImplantsCmd ¶
func ImplantsCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ImplantsCmd - Displays archived implant builds.
func ImplantsRmCmd ¶
func ImplantsRmCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ImplantsRmCmd - Deletes an archived implant build from the server.
func ImplantsStageCmd ¶
func ImplantsStageCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ImplantsStageCmd - Serve a previously generated build
func OSCompleter ¶
func OSCompleter(con *console.SliverClient) carapace.Action
FormatCompleter completes build operating systems.
func ParseDNSc2 ¶
ParseDNSc2 - Parse DNS connection string arg.
func ParseHTTPc2 ¶
ParseHTTPc2 - Parse HTTP connection string arg.
func ParseMTLSc2 ¶
ParseMTLSc2 - Parse mtls connection string arg.
func ParseNamedPipec2 ¶
ParseNamedPipec2 - Parse named pipe connection string arg.
func ParseTCPPivotc2 ¶
ParseTCPPivotc2 - Parse tcp pivot connection string arg.
func PrintCanaries ¶
func PrintCanaries(con *console.SliverClient, canaries []*clientpb.DNSCanary, burnedOnly bool)
PrintCanaries - Print the canaries tracked by the server.
func PrintImplantBuilds ¶
func PrintImplantBuilds(builds *clientpb.ImplantBuilds, filters ImplantBuildFilter, con *console.SliverClient)
PrintImplantBuilds - Print the implant builds on the server
func PrintProfileInfo ¶
func PrintProfileInfo(name string, con *console.SliverClient)
PrintProfileInfo - Print detailed information about a given profile.
func PrintProfiles ¶
func PrintProfiles(profiles []*clientpb.ImplantProfile, con *console.SliverClient)
PrintProfiles - Print the profiles.
func ProfileNameCompleter ¶
func ProfileNameCompleter(con *console.SliverClient) carapace.Action
ProfileNameCompleter - Completer for implant build names.
func ProfilesCmd ¶
func ProfilesCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ProfilesCmd - Display implant profiles.
func ProfilesGenerateCmd ¶
func ProfilesGenerateCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ProfilesGenerateCmd - Generate an implant binary based on a profile.
func ProfilesNewBeaconCmd ¶
func ProfilesNewBeaconCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ProfilesNewBeaconCmd - Create a new beacon profile.
func ProfilesNewCmd ¶
func ProfilesNewCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ProfilesNewCmd - Create a new implant profile.
func ProfilesRmCmd ¶
func ProfilesRmCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ProfilesRmCmd - Delete an implant profile.
func ProfilesStageCmd ¶
func ProfilesStageCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ProfilesStageCmd - Generate an encrypted/compressed implant binary based on a profile
func RegenerateCmd ¶
func RegenerateCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
RegenerateCmd - Download an archived implant build/binary.
func SelectTrafficEncoder ¶
func SelectTrafficEncoder(con *console.SliverClient) string
SelectTrafficEncoder - Select a traffic encoder from a list.
func TrafficEncodersAddCmd ¶
func TrafficEncodersAddCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
TrafficEncodersAddCmd - Add a new traffic encoder to the server.
func TrafficEncodersCmd ¶
func TrafficEncodersCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
TrafficEncodersCmd - Generate traffic encoders command implementation.
func TrafficEncodersCompleter ¶
func TrafficEncodersCompleter(con *console.SliverClient) carapace.Action
TrafficEncoderCompleter - Completes the names of traffic encoders.
func TrafficEncodersRemoveCmd ¶
func TrafficEncodersRemoveCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
TrafficEncodersRemoveCmd - Remove a traffic encoder.