Documentation ¶
Index ¶
- type SMBClient
- func (c *SMBClient) ConnectSMBInfoMode(host string, port int) (*smb.SMBLog, error)
- func (c *SMBClient) DetectSMBGhost(host string, port int) (bool, error)
- func (c *SMBClient) ListSMBv2Metadata(host string, port int) (*plugins.ServiceSMB, error)
- func (c *SMBClient) ListShares(host string, port int, user, password string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SMBClient ¶
type SMBClient struct{}
SMBClient is a client for SMB servers.
Internally client uses github.com/zmap/zgrab2/lib/smb/smb driver. github.com/hirochachacha/go-smb2 driver
func (*SMBClient) ConnectSMBInfoMode ¶
ConnectSMBInfoMode tries to connect to provided host and port and discovery SMB information
Returns handshake log and error. If error is not nil, state will be false
func (*SMBClient) DetectSMBGhost ¶
DetectSMBGhost tries to detect SMBGhost vulnerability by using SMBv3 compression feature.
func (*SMBClient) ListSMBv2Metadata ¶
ListSMBv2Metadata tries to connect to provided host and port and list SMBv2 metadata.
Returns metadata and error. If error is not nil, state will be false
func (*SMBClient) ListShares ¶
ListShares tries to connect to provided host and port and list shares by using given credentials.
Credentials cannot be blank. guest or anonymous credentials can be used by providing empty password.