dcomexec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LcEnglishUs uint32 = 0x409
)
View Source
const (
	MethodMmc = "MMC" // MMC20.Application::Document.ActiveView.ExecuteShellCommand
)
View Source
const (
	ModuleName = "DCOM"
)

Variables

View Source
var (
	ShellWindowsUuid = uuid.MustParse("9BA05972-F6A8-11CF-A442-00A0C90A8F39")
	Mmc20Uuid        = uuid.MustParse("49B2791A-B1AE-4C90-9B8E-E860BA07F889")

	RandCid      = dcom.CID(*dtyp.GUIDFromUUID(uuid.MustParse(googleUUID.NewString())))
	IDispatchIID = &dcom.IID{
		Data1: 0x20400,
		Data2: 0x0,
		Data3: 0x0,
		Data4: []byte{0xc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x46},
	}
	ComVersion = &dcom.COMVersion{
		MajorVersion: 5,
		MinorVersion: 7,
	}
	ORPCThis = &dcom.ORPCThis{
		Version: ComVersion,
		CID:     &RandCid,
	}
)

Functions

This section is empty.

Types

type Dcom

type Dcom struct {
	goexec.Cleaner
	goexec.Executor

	Client  *dce.Client
	ClassID string
	// contains filtered or unexported fields
}

func (*Dcom) Connect

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

func (*Dcom) Init

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

type DcomMmc

type DcomMmc struct {
	Dcom

	IO goexec.ExecutionIO

	WorkingDirectory string
	WindowState      string
}

func (*DcomMmc) Execute

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

Execute will perform command execution via the MMC20.Application DCOM object.

Jump to

Keyboard shortcuts

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