common

package
v0.0.0-...-e973567 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	IsSigningRequired bool
	IsAuthenticated   bool
	// contains filtered or unexported fields
}

会话结构

func (*Client) Close

func (c *Client) Close() error

func (*Client) Debug

func (c *Client) Debug(msg string, err error)

func (*Client) GetConn

func (c *Client) GetConn() net.Conn

func (*Client) GetMessageId

func (c *Client) GetMessageId() uint64

func (*Client) GetOptions

func (c *Client) GetOptions() *ClientOptions

func (*Client) GetSecurityMode

func (c *Client) GetSecurityMode() uint16

func (*Client) GetSessionId

func (c *Client) GetSessionId() uint64

func (*Client) GetTrees

func (c *Client) GetTrees() map[string]uint32

func (*Client) SMBSend

func (c *Client) SMBSend(req interface{}) (res []byte, err error)

func (*Client) TCPSend

func (c *Client) TCPSend(req interface{}) (res []byte, err error)

func (*Client) WithConn

func (c *Client) WithConn(conn net.Conn) *Client

func (*Client) WithDebug

func (c *Client) WithDebug(debug bool) *Client

func (*Client) WithDialect

func (c *Client) WithDialect(dialect uint16) *Client

func (*Client) WithOptions

func (c *Client) WithOptions(clientOptions *ClientOptions) *Client

func (*Client) WithSecurityMode

func (c *Client) WithSecurityMode(securityMode uint16) *Client

func (*Client) WithSessionId

func (c *Client) WithSessionId(sessionId uint64) *Client

func (*Client) WithTrees

func (c *Client) WithTrees(trees map[string]uint32) *Client

type ClientOptions

type ClientOptions struct {
	Host        string
	Port        int
	Workstation string
	Domain      string
	User        string
	Password    string
	Hash        string
}

连接参数

Jump to

Keyboard shortcuts

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