hosts

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: GPL-3.0 Imports: 19 Imported by: 2

README

client/command/hosts

Overview

Implements the 'hosts' command group for the Sliver client console. Handlers map Cobra invocations to hosts workflows such as hosts IOC RM, hosts IOC, and hosts RM.

Go Files

  • commands.go – Sets up the hosts command suite and its IOC management subcommands.
  • hosts-ioc-rm.go – Removes stored indicators of compromise for a host via RPC.
  • hosts-ioc.go – Lists and prints host IOC data retrieved from the server.
  • hosts-rm.go – Deletes hosts from inventory and confirms removal operations.
  • hosts.go – Displays host summaries, filters by query, and renders tabular output.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoHosts - No hosts in database.
	ErrNoHosts = errors.New("no hosts")
	// ErrNoIOCs - No IOCs in database
	ErrNoIOCs = errors.New("no IOCs in database for selected host")
	// ErrNoSelection - No selection made
	ErrNoSelection = errors.New("no selection")
)

Functions

func Commands added in v1.6.0

func Commands(con *console.SliverClient) []*cobra.Command

Commands returns the “ command and its subcommands.

func HostsCmd

func HostsCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

HostsCmd - Main hosts command.

func HostsIOCCmd

func HostsIOCCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

HostsIOCCmd - Remove a host from the database.

func HostsIOCRmCmd

func HostsIOCRmCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

HostsIOCRmCmd - Remove a host from the database.

func HostsRmCmd

func HostsRmCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

HostsRmCmd - Remove a host from the database.

func SelectHost

func SelectHost(con *console.SliverClient) (*clientpb.Host, error)

SelectHost - Interactively select a host from the database.

func SelectHostIOC

func SelectHostIOC(host *clientpb.Host, con *console.SliverClient) (*clientpb.IOC, error)

func SessionsForHost

func SessionsForHost(hostUUID string, con *console.SliverClient) []*clientpb.Session

SessionsForHost - Find session for a given host by id.

Types

This section is empty.

Jump to

Keyboard shortcuts

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