Documentation
¶
Index ¶
- func ExecuteCommandsWithCredentials(ctx context.Context, host string, port int, username, password string, ...) ([]*commonprotocolfern.SshCommandExecution, error)
- func PerformAuthentication(target string, config *sshfern.PentestSshConfig) (*sshfern.AuthResult, error)
- func PerformAuthenticationWithContext(ctx context.Context, target string, config *sshfern.PentestSshConfig) (*sshfern.AuthResult, error)
- func PerformCommandExecution(ctx context.Context, target string, config *sshfern.PentestSshConfig) (*sshfern.ExecResult, error)
- type ExecutionCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCommandsWithCredentials ¶ added in v0.0.104
func ExecuteCommandsWithCredentials(ctx context.Context, host string, port int, username, password string, commands []string, timeout int) ([]*commonprotocolfern.SshCommandExecution, error)
ExecuteCommandsWithCredentials executes commands on the remote SSH server using provided credentials
func PerformAuthentication ¶
func PerformAuthentication(target string, config *sshfern.PentestSshConfig) (*sshfern.AuthResult, error)
PerformAuthentication performs authentication attempts against SSH service Returns auth results
func PerformAuthenticationWithContext ¶
func PerformAuthenticationWithContext(ctx context.Context, target string, config *sshfern.PentestSshConfig) (*sshfern.AuthResult, error)
PerformAuthenticationWithContext performs authentication attempts against SSH service with context Returns auth results
func PerformCommandExecution ¶ added in v0.0.104
func PerformCommandExecution(ctx context.Context, target string, config *sshfern.PentestSshConfig) (*sshfern.ExecResult, error)
PerformCommandExecution executes commands on remote SSH target using authenticated credentials
Types ¶
type ExecutionCredentials ¶ added in v0.0.104
ExecutionCredentials holds authenticated credentials for command execution
Click to show internal directories.
Click to hide internal directories.