Documentation
¶
Index ¶
- func ExecuteCommandsWithCredentials(ctx context.Context, host string, port int, username, password, domain string, ...) ([]*commonprotocolfern.WinrmCommandExecution, error)
- func PerformAuthentication(target string, config *winrmfern.PentestWinrmConfig) (*winrmfern.AuthResult, error)
- func PerformAuthenticationWithContext(ctx context.Context, target string, config *winrmfern.PentestWinrmConfig) (*winrmfern.AuthResult, error)
- func PerformAuthenticationWithContextAndConnection(ctx context.Context, target string, config *winrmfern.PentestWinrmConfig) (*winrmfern.AuthResult, *winrm.Client, error)
- func PerformCommandExecution(ctx context.Context, target string, config *winrmfern.PentestWinrmConfig) (*winrmfern.ExecResult, error)
- type ExecutionCredentials
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 ¶
ExecutionCredentials holds authenticated credentials for command execution