rdp

package
v3.4.7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Warning - This is generated code

Index

Constants

View Source
const (
	SecurityLayerNativeRDP                = "NativeRDP"
	SecurityLayerSSL                      = "SSL"
	SecurityLayerCredSSP                  = "CredSSP"
	SecurityLayerRDSTLS                   = "RDSTLS"
	SecurityLayerCredSSPWithEarlyUserAuth = "CredSSPWithEarlyUserAuth"
)
View Source
const (
	EncryptionLevelRC4_40bit  = "RC4_40bit"
	EncryptionLevelRC4_56bit  = "RC4_56bit"
	EncryptionLevelRC4_128bit = "RC4_128bit"
	EncryptionLevelFIPS140_1  = "FIPS140_1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRDPAuthResponse

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

CheckRDPAuthResponse is the response from the CheckRDPAuth function. this is returned by CheckRDPAuth function. @example ```javascript const rdp = require('nuclei/rdp'); const checkRDPAuth = rdp.CheckRDPAuth('acme.com', 3389); log(toJSON(checkRDPAuth)); ```

func CheckRDPAuth

func CheckRDPAuth(ctx context.Context, host string, port int) (CheckRDPAuthResponse, error)

CheckRDPAuth checks if the given host and port are running rdp server with authentication and returns their metadata. If connection is successful, it returns true. @example ```javascript const rdp = require('nuclei/rdp'); const checkRDPAuth = rdp.CheckRDPAuth('acme.com', 3389); log(toJSON(checkRDPAuth)); ```

type EncryptionLevel added in v3.4.7

type EncryptionLevel string

type IsRDPResponse

type IsRDPResponse struct {
	IsRDP bool
	OS    string
}

IsRDPResponse is the response from the IsRDP function. this is returned by IsRDP function. @example ```javascript const rdp = require('nuclei/rdp'); const isRDP = rdp.IsRDP('acme.com', 3389); log(toJSON(isRDP)); ```

func IsRDP

func IsRDP(ctx context.Context, 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. @example ```javascript const rdp = require('nuclei/rdp'); const isRDP = rdp.IsRDP('acme.com', 3389); log(toJSON(isRDP)); ```

type RDPEncryptionResponse added in v3.4.7

type RDPEncryptionResponse struct {
	// Protocols
	NativeRDP                bool
	SSL                      bool
	CredSSP                  bool
	RDSTLS                   bool
	CredSSPWithEarlyUserAuth bool

	// EncryptionLevels
	RC4_40bit  bool
	RC4_56bit  bool
	RC4_128bit bool
	FIPS140_1  bool
}

RDPEncryptionResponse is the response from the CheckRDPEncryption function. This is returned by CheckRDPEncryption function. @example ```javascript const rdp = require('nuclei/rdp'); const encryption = rdp.CheckRDPEncryption('acme.com', 3389); log(toJSON(encryption)); ```

func CheckRDPEncryption added in v3.4.7

func CheckRDPEncryption(ctx context.Context, host string, port int) (RDPEncryptionResponse, error)

CheckRDPEncryption checks the RDP server's supported security layers and encryption levels. It tests different protocols and ciphers to determine what is supported. @example ```javascript const rdp = require('nuclei/rdp'); const encryption = rdp.CheckRDPEncryption('acme.com', 3389); log(toJSON(encryption)); ```

type SecurityLayer added in v3.4.7

type SecurityLayer string

Jump to

Keyboard shortcuts

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