rdp

package
v3.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT, Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRDPAuthResponse

type CheckRDPAuthResponse struct {
	PluginInfo *plugins.ServiceRDP
	Auth       bool
}

type IsRDPResponse

type IsRDPResponse struct {
	IsRDP bool
	OS    string
}

type RDPClient

type RDPClient struct{}

RDPClient is a client for rdp servers

func (*RDPClient) CheckRDPAuth

func (c *RDPClient) CheckRDPAuth(host string, port int) (CheckRDPAuthResponse, error)

CheckRDPAuth checks if the given host and port are running rdp server with authentication and returns their metadata.

func (*RDPClient) IsRDP

func (c *RDPClient) IsRDP(host string, port int) (IsRDPResponse, error)

IsRDP checks if the given host and port are running rdp server.

If connection is successful, it returns true. If connection is unsuccessful, it returns false and error.

The Name of the OS is also returned if the connection is successful.

Jump to

Keyboard shortcuts

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