grdp

package module
v0.0.0-...-ac9eb09 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

README

Golang Retome Desktop Protocol

grdp is a pure Golang implementation of the Microsoft RDP (Remote Desktop Protocol) protocol (client side authorization only).

Status

The project is under development and not finished yet.

  • SSL Authentication (soon)
  • NLA Authentication

Example

client := grdp.NewClient("192.168.0.2:3389", glog.DEBUG)
err := client.Login("Administrator", "123456")
if err != nil {
    fmt.Println("login failed,", err)
} else {
    fmt.Println("login success")
}

Take ideas from

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(host string) *Client

func (*Client) Close

func (g *Client) Close()

func (*Client) Login

func (g *Client) Login(user, pwd string) error

func (*Client) OnClose

func (g *Client) OnClose(f func())

func (*Client) OnError

func (g *Client) OnError(f func(e error))

func (*Client) OnReady

func (g *Client) OnReady(f func())

func (*Client) OnSuccess

func (g *Client) OnSuccess(f func())

func (*Client) OnUpdate

func (g *Client) OnUpdate(f func([]pdu.BitmapData))

Directories

Path Synopsis
protocol
lic
nla
pdu
sec

Jump to

Keyboard shortcuts

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