rdp

package
v0.0.191 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package rdp implements pre-auth RDP fingerprinting (enumerate stage, Mode A). It performs an X.224 Connection Request with rdpNegReq, parses the Connection Confirm / rdpNegRsp / rdpNegFailure, optionally upgrades to TLS, and captures the server certificate.

No authentication or payload beyond the X.224 handshake is sent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapProtocolToFlags

func MapProtocolToFlags(proto uint32) *rdpfern.RdpProtocolFlag

MapProtocolToFlags converts a raw protocol uint32 to the Fern RdpProtocolFlag enum, or nil if proto is not one of the values defined by [MS-RDPBCGR] §2.2.1.1.1. Exported so it can be used by the bluekeep pentest package.

func RunEnumerateRDP

func RunEnumerateRDP(ctx context.Context, target string, timeoutSec int) *rdpfern.EnumerateRdpDetails

RunEnumerateRDP is a legacy entry point kept for direct callers. It returns an EnumerateRdpDetails for a single target.

Types

type LibraryEnumerateRDP

type LibraryEnumerateRDP struct{}

LibraryEnumerateRDP implements NetworkApplicationLibrary for RDP enumeration.

func (*LibraryEnumerateRDP) EnumerateTarget

EnumerateTarget implements NetworkApplicationLibrary and performs pre-auth RDP fingerprinting against a single target (host:port or bare host).

Jump to

Keyboard shortcuts

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