Documentation
¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Close(ctx context.Context) (err error)
- func (c *Client) Connect(ctx context.Context) (err error)
- func (c *Client) Logger(ctx context.Context) zerolog.Logger
- func (c *Client) Mount(ctx context.Context, share string) (err error)
- func (c *Client) Parse(ctx context.Context) (err error)
- func (c *Client) Session() (sess *smb2.Session)
- func (c *Client) String() string
- type ClientOptions
- type FileStager
- type OutputFileFetcher
Constants ¶
View Source
const ( ClientName = "SMB" DefaultPort = 445 DefaultDialect = smb2.SMB311 )
Variables ¶
View Source
var ( DefaultOutputPollInterval = 500 * time.Millisecond DefaultOutputPollTimeout = 60 * time.Second )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
ClientOptions
// contains filtered or unexported fields
}
type ClientOptions ¶
type ClientOptions struct {
goexec.ClientOptions
goexec.AuthOptions
// NoSign disables packet signing
NoSign bool `json:"no_sign" yaml:"no_sign"`
// NoSeal disables packet encryption
NoSeal bool `json:"no_seal" yaml:"no_seal"`
// Dialect sets the SMB dialect to be passed to smb2.WithDialect()
Dialect msrpcSMB2.Dialect `json:"dialect" yaml:"dialect"`
// contains filtered or unexported fields
}
ClientOptions holds configuration settings for an SMB client
type FileStager ¶
Click to show internal directories.
Click to hide internal directories.