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

winrm

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommandsWithCredentials

func ExecuteCommandsWithCredentials(ctx context.Context, host string, port int, username, password, domain string, commands []string, config *winrmfern.PentestWinrmConfig) ([]*commonprotocolfern.WinrmCommandExecution, error)

ExecuteCommandsWithCredentials executes commands on the remote WinRM server using provided credentials

func PerformAuthentication

func PerformAuthentication(target string, config *winrmfern.PentestWinrmConfig) (*winrmfern.AuthResult, error)

PerformAuthentication performs authentication attempts against WinRM service Returns auth results

func PerformAuthenticationWithContext

func PerformAuthenticationWithContext(ctx context.Context, target string, config *winrmfern.PentestWinrmConfig) (*winrmfern.AuthResult, error)

PerformAuthenticationWithContext performs authentication attempts against WinRM service with context Returns auth results

func PerformAuthenticationWithContextAndConnection

func PerformAuthenticationWithContextAndConnection(ctx context.Context, target string, config *winrmfern.PentestWinrmConfig) (*winrmfern.AuthResult, *winrm.Client, error)

PerformAuthenticationWithContextAndConnection performs authentication attempts against WinRM service with context Returns both auth results and authenticated client (if successful)

func PerformCommandExecution

func PerformCommandExecution(ctx context.Context, target string, config *winrmfern.PentestWinrmConfig) (*winrmfern.ExecResult, error)

PerformCommandExecution executes commands on remote WinRM target using authenticated credentials

func RunPentest added in v0.0.154

RunPentest performs WinRM pentest operations for multiple targets

Types

type ExecutionCredentials

type ExecutionCredentials struct {
	Username string
	Password string
	Domain   string
}

ExecutionCredentials holds authenticated credentials for command execution

Jump to

Keyboard shortcuts

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