hosts

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

README

Hosts

Command to access and manage host information.

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

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