optwinrm

package
v0.0.0-...-8d0f603 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Targets struct {
		TARGETS []string `description:"Provide target IP/FQDN/FILE"`
	} `positional-args:"yes"`

	Connection struct {
		Port     int    `long:"port" default:"5985"`
		SSL      bool   `long:"ssl" description:"Encrypt Winrm connection"`
		Username string `short:"u" description:"Provide username (or FILE)"`
		Password string `short:"p" description:"Provide password (or FILE)"`
	} `group:"Connection Options" description:"Connection Options"`

	Mode struct {
		Exec  string `short:"x" description:"Execute command on target host"`
		Shell bool   `long:"shell" description:"Spawn a powershell shell"`
	} `group:"Execution Mode"`
	// contains filtered or unexported fields
}

func (*Options) Run

func (o *Options) Run()

Jump to

Keyboard shortcuts

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