privilege

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 10 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 RegisterRev2selfFunc added in v0.1.1

func RegisterRev2selfFunc(con *repl.Console)

func RegisterRunasFunc

func RegisterRunasFunc(con *repl.Console)

func Rev2self added in v0.1.1

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

func Rev2selfCmd added in v0.1.1

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

Rev2selfCmd reverts to the original token.

func Runas

func Runas(rpc clientrpc.MaliceRPCClient, session *core.Session, username, domain, password, program, args string, useProfile, useEnv, 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