Help us shape the future of Go! Take the 2026 Go Developer Survey

privilege

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(con *repl.Console) []*cobra.Command

func GetSystem

func GetSystem(rpc clientrpc.MaliceRPCClient, session *core.Session) (*clientpb.Task, error)

func GetSystemCmd

func GetSystemCmd(cmd *cobra.Command, con *repl.Console) error

GetSystemCmd attempts to elevate privileges.

func Privs

func Privs(rpc clientrpc.MaliceRPCClient, session *core.Session) (*clientpb.Task, error)

func PrivsCmd

func PrivsCmd(cmd *cobra.Command, con *repl.Console) error

PrivsCmd lists available privileges.

func Register

func Register(con *repl.Console)

func RegisterGetSystemFunc

func RegisterGetSystemFunc(con *repl.Console)

func RegisterPrivsFunc

func RegisterPrivsFunc(con *repl.Console)

func RegisterRunasFunc

func RegisterRunasFunc(con *repl.Console)

func Runas

func Runas(rpc clientrpc.MaliceRPCClient, session *core.Session, username, domain, password, program, args string, show int32, netonly bool) (*clientpb.Task, error)

func RunasCmd

func RunasCmd(cmd *cobra.Command, con *repl.Console) error

RunasCmd executes a program under another user's credentials.

Types

This section is empty.

Jump to

Keyboard shortcuts

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