wmiexec

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName      = "WMI"
	DefaultEndpoint = "ncacn_ip_tcp:[135]"
)
View Source
const (
	ProtocolSequenceRPC uint16 = 7
	ProtocolSequenceNP  uint16 = 15
)
View Source
const (
	MethodProc = "Proc"
)

Variables

View Source
var (
	ComVersion = &dcom.COMVersion{
		MajorVersion: 5,
		MinorVersion: 7,
	}
	ORPCThis = &dcom.ORPCThis{Version: ComVersion}
)

Functions

This section is empty.

Types

type Wmi

type Wmi struct {
	goexec.Cleaner
	Client *dce.Client

	Resource string
	// contains filtered or unexported fields
}

func (*Wmi) Connect

func (m *Wmi) Connect(ctx context.Context) (err error)

func (*Wmi) Init

func (m *Wmi) Init(ctx context.Context) (err error)

type WmiCall

type WmiCall struct {
	Wmi

	Class  string
	Method string
	Args   map[string]any

	Out io.Writer
}

func (*WmiCall) Call

func (m *WmiCall) Call(ctx context.Context) (err error)

type WmiProc

type WmiProc struct {
	Wmi
	IO               goexec.ExecutionIO
	WorkingDirectory string
}

func (*WmiProc) Execute

func (m *WmiProc) Execute(ctx context.Context, execIO *goexec.ExecutionIO) (err error)

Jump to

Keyboard shortcuts

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