Documentation
¶
Index ¶
- func ExecuteCommands(host string, port int, username, password, domain string, commands []string, ...) ([]*smbfern.CommandExecution, error)
- func ExecuteScheduledTask(client *smbclient.Client, command string) (string, int, error)
- func ExecuteServiceCommand(client *smbclient.Client, command string) (string, int, error)
- func ExecuteWMICommand(client *smbclient.Client, command string) (string, int, error)
- func PerformAuthentication(config *smbfern.SmbPentestConfig) (*smbfern.SmbPentestDetails, *smbfern.AuthStatistics, error)
- func PerformAuthenticationWithContext(ctx context.Context, config *smbfern.SmbPentestConfig) (*smbfern.SmbPentestDetails, *smbfern.AuthStatistics, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCommands ¶
func ExecuteCommands(host string, port int, username, password, domain string, commands []string, timeout int) ([]*smbfern.CommandExecution, error)
ExecuteCommands executes commands on the remote SMB server using valid credentials This function requires successful authentication first
func ExecuteScheduledTask ¶
ExecuteScheduledTask executes a command using scheduled tasks (future implementation)
func ExecuteServiceCommand ¶
ExecuteServiceCommand executes a command by creating a service (future implementation)
func ExecuteWMICommand ¶
ExecuteWMICommand executes a command using WMI over SMB (future implementation)
func PerformAuthentication ¶
func PerformAuthentication(config *smbfern.SmbPentestConfig) (*smbfern.SmbPentestDetails, *smbfern.AuthStatistics, error)
PerformAuthentication performs authentication attempts against SMB service Returns both base server info and auth results
func PerformAuthenticationWithContext ¶
func PerformAuthenticationWithContext(ctx context.Context, config *smbfern.SmbPentestConfig) (*smbfern.SmbPentestDetails, *smbfern.AuthStatistics, error)
PerformAuthenticationWithContext performs authentication attempts against SMB service with context Returns both base server info and auth results
Types ¶
This section is empty.