login

package
v0.0.0-...-7459da2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT, GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Socks5Proxy string     = ""
	LogLever    glog.LEVEL = glog.NONE
	OutputDir   string
)

Functions

func NlaAuth

func NlaAuth(host, domain, user, password string, timeout int64) (bool, error)

NlaAuth 仅进行NLA认证验证,不建立RDP会话,不会挤掉已登录用户 返回: (认证成功, 错误信息)

func Socks5Dailer

func Socks5Dailer(forward *net.Dialer) (proxy.Dialer, error)

func WrapperTCP

func WrapperTCP(network, address string, forward *net.Dialer) (net.Conn, error)

func WrapperTcpWithTimeout

func WrapperTcpWithTimeout(network, address string, timeout time.Duration) (net.Conn, error)

Types

type Client

type Client struct {
	Host string // ip:port
	// contains filtered or unexported fields
}

func NewClient

func NewClient(host string, logLevel glog.LEVEL) *Client

func (*Client) NlaAuthOnly

func (g *Client) NlaAuthOnly(domain, user, pwd string, timeout int64) (bool, error)

NlaAuthOnly 仅进行NLA认证验证凭据,不建立RDP会话 这样不会挤掉已登录的用户

func (*Client) ProbeOSInfo

func (g *Client) ProbeOSInfo(host, domain, user, pwd string, timeout int64, rdpProtocol uint32) (info map[string]any)

Jump to

Keyboard shortcuts

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