winrm

package
v0.0.151 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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