command

package
v0.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: GPL-3.0 Imports: 28 Imported by: 0

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 (

	// ActiveSliver - The current sliver we're interacting with
	ActiveSliver = &activeSliver{
		observers: []observer{},
	}
)

Functions

func BindCommands

func BindCommands(app *grumble.App, server *core.SliverServer)

BindCommands - Bind commands to a App

func SliverSessionsByName

func SliverSessionsByName(name string, rpc RPCServer) []*clientpb.Sliver

SliverSessionsByName - Return all sessions for a Sliver by name

Types

type RPCServer

type RPCServer func(*sliverpb.Envelope, time.Duration) chan *sliverpb.Envelope

RPCServer - Function used to send/recv envelopes

Jump to

Keyboard shortcuts

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