Help us shape the future of Go! Take the 2026 Go Developer Survey

smb

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PerformAuthentication

func PerformAuthentication(target string, config *smbfern.PentestSmbConfig) (*smbfern.AuthResult, error)

PerformAuthentication performs authentication attempts against SMB service Returns both base server info and auth results

func PerformAuthenticationWithContext

func PerformAuthenticationWithContext(ctx context.Context, target string, config *smbfern.PentestSmbConfig) (*smbfern.AuthResult, error)

PerformAuthenticationWithContext performs authentication attempts against SMB service with context Returns both base server info and auth results

func PerformAuthenticationWithContextAndConnection added in v0.0.76

func PerformAuthenticationWithContextAndConnection(ctx context.Context, target string, config *smbfern.PentestSmbConfig) (*smbfern.AuthResult, *smbclient.Client, error)

PerformAuthenticationWithContextAndConnection performs authentication attempts against SMB service with context Returns both auth results and authenticated client (if successful)

func PerformCommandExecution added in v0.0.81

func PerformCommandExecution(ctx context.Context, target string, config *smbfern.PentestSmbConfig) (*smbfern.ExecResult, error)

PerformCommandExecution executes commands on remote SMB target using WMI

func PerformLsadump added in v0.0.51

func PerformLsadump(ctx context.Context, target string, config *smbfern.PentestSmbConfig, authenticatedSession *gosmb.Connection) (*smbfern.LsadumpResult, error)

PerformLsadump performs LSA secrets dumping

func PerformProbe added in v0.0.61

func PerformProbe(ctx context.Context, target string, config *smbfern.PentestSmbConfig) (*smbfern.ProbeResult, error)

PerformProbe performs server information gathering via NTLM challenge without authentication

func PerformSamdump added in v0.0.51

func PerformSamdump(ctx context.Context, target string, config *smbfern.PentestSmbConfig, authenticatedSession *gosmb.Connection) (*smbfern.SamdumpResult, error)

PerformSamdump performs SAM secrets dumping

func PerformShareDownload added in v0.0.85

func PerformShareDownload(ctx context.Context, target string, config *smbfern.PentestSmbConfig, authenticatedSession *gosmb.Connection) (*smbfern.ShareDownloadResult, error)

PerformShareDownload downloads a file from SMB share using the provided authenticated session

func PerformSharesMap added in v0.0.85

func PerformSharesMap(ctx context.Context, target string, config *smbfern.PentestSmbConfig, authenticatedSession *gosmb.Connection) (*smbfern.SharesMapResult, error)

PerformSharesMap performs share enumeration using the provided authenticated session

func RunPentest added in v0.0.154

RunPentest performs SMB pentest operations using 3-stage phased approach.

Types

type ExecutionCredentials added in v0.0.81

type ExecutionCredentials struct {
	Username string
	Password string
	NTLMHash string
	Domain   string
}

ExecutionCredentials holds authenticated credentials for command execution

Directories

Path Synopsis
Package eternalblue implements the CVE-2017-0144 (EternalBlue / MS17-010) precondition validation against Windows SMB servers.
Package eternalblue implements the CVE-2017-0144 (EternalBlue / MS17-010) precondition validation against Windows SMB servers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL