Documentation ¶
Index ¶
- Variables
- func BackgroundCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func CloseSessionCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func Commands(con *console.SliverClient) []*cobra.Command
- func InteractiveCmd(cmd *cobra.Command, con *console.SliverClient, _ []string)
- func PrintSessions(sessions map[string]*clientpb.Session, filter string, ...)
- func SelectSession(onlyAlive bool, con *console.SliverClient) (*clientpb.Session, error)
- func SessionIDCompleter(con *console.SliverClient) carapace.Action
- func SessionsCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func SessionsPruneCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ShortSessionID(id string) string
- func SliverCommands(con *console.SliverClient) []*cobra.Command
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNoSessions - No sessions available. ErrNoSessions = errors.New("no sessions") // ErrNoSelection - No selection made. ErrNoSelection = errors.New("no selection") )
Functions ¶
func BackgroundCmd ¶
func BackgroundCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
BackgroundCmd - Background the active session.
func CloseSessionCmd ¶
func CloseSessionCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
CloseSessionCmd - Close an interactive session but do not kill the remote process.
func Commands ¶
func Commands(con *console.SliverClient) []*cobra.Command
Commands returns the `sessions` command and its subcommands.
func InteractiveCmd ¶
func InteractiveCmd(cmd *cobra.Command, con *console.SliverClient, _ []string)
InteractiveCmd - Beacon only command to open an interactive session.
func PrintSessions ¶
func PrintSessions(sessions map[string]*clientpb.Session, filter string, filterRegex *regexp.Regexp, con *console.SliverClient)
PrintSessions - Print the current sessions.
func SelectSession ¶
SelectSession - Interactive menu for the user to select an session, optionally only display live sessions.
func SessionIDCompleter ¶
func SessionIDCompleter(con *console.SliverClient) carapace.Action
SessionIDCompleter completes session IDs.
func SessionsCmd ¶
func SessionsCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
SessionsCmd - Display/interact with sessions.
func SessionsPruneCmd ¶
func SessionsPruneCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
SessionsPruneCmd - Forcefully kill stale sessions.
func ShortSessionID ¶
ShortSessionID - Shorten the session ID.
func SliverCommands ¶
func SliverCommands(con *console.SliverClient) []*cobra.Command
SliverCommands returns all session control commands for the active target.
Types ¶
This section is empty.