winrm

package
v0.0.119 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 10 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

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