command

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: GPL-3.0 Imports: 51 Imported by: 5

README

Command

This package contains all of the client command implementations that are shared between the client and the server console.

Documentation

Index

Constants

View Source
const (

	// Info - Display colorful information
	Info = bold + cyan + "[*] " + normal
	// Warn - Warn a user
	Warn = bold + red + "[!] " + normal
	// Debug - Display debug information
	Debug = bold + purple + "[-] " + normal
	// Woot - Display success
	Woot = bold + green + "[$] " + normal
)

Variables

View Source
var (

	// ActiveSession - The current sliver we're interacting with
	ActiveSession = &activeSession{
		observers:  map[int]Observer{},
		observerID: 0,
	}
)
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 BindCommands

func BindCommands(app *grumble.App, rpc rpcpb.SliverRPCClient)

BindCommands - Bind commands to a App

func GetLastUpdateCheck

func GetLastUpdateCheck() *time.Time

GetLastUpdateCheck - Get the timestap of the last update check, nil if none

func GetSession

func GetSession(arg string, rpc rpcpb.SliverRPCClient) *clientpb.Session

GetSession - Get session by session ID or name

func GetSessionsByName

func GetSessionsByName(name string, rpc rpcpb.SliverRPCClient) []*clientpb.Session

GetSessionsByName - Return all sessions for an Implant by name

Types

type Observer

type Observer func(*clientpb.Session)

Observer - A function to call when the sessions changes

Jump to

Keyboard shortcuts

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