rdp

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Warning - This is generated code

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
}

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(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 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(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)); ```

Jump to

Keyboard shortcuts

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