command

package
v1.0.6-beta Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: GPL-3.0 Imports: 43 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,
	}
)

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 ExportDirectory

type ExportDirectory struct {
	Characteristics       uint32
	TimeDateStamp         uint32
	MajorVersion          uint16
	MinorVersion          uint16
	Name                  uint32
	Base                  uint32
	NumberOfFunctions     uint32
	NumberOfNames         uint32
	AddressOfFunctions    uint32 // RVA from base of image
	AddressOfNames        uint32 // RVA from base of image
	AddressOfNameOrdinals uint32 // RVA from base of image
}

ExportDirectory - stores the Export data

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