rdp

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCTPDU

type CCTPDU struct {
	Length      byte // header length including parameters
	CCCDT       byte
	DstRef      [2]byte
	SrcRef      [2]byte
	ClassOption byte
}

CCTPDU Connection Confirm see http://go.microsoft.com/fwlink/?LinkId=90588 section 13.3

type CRTPDU

type CRTPDU struct {
	Length                byte
	ConnectionRequestCode byte
	DstRef                [2]byte
	SrcRef                [2]byte
	ClassOption           byte
}

CRTPDU see http://go.microsoft.com/fwlink/?LinkId=90588 section 13.3

type ConnectionConfirmPDU

type ConnectionConfirmPDU struct {
	Header   TKIPHeader
	TPDU     CCTPDU
	Response NegotiationResponse
}

type ConnectionRequestPDU

type ConnectionRequestPDU struct {
	Header    TKIPHeader
	TPDU      CRTPDU
	Data      []byte
	RDPNegReq RDPNegReq
}

func ParseCRPDU

func ParseCRPDU(data []byte) (ConnectionRequestPDU, error)

ParsePDU takes raw data and parses into struct

type NegotiationResponse

type NegotiationResponse struct {
	Type             byte
	Flags            byte
	Length           [2]byte
	SelectedProtocol [4]byte
}

type RDPNegReq

type RDPNegReq struct {
	Type               byte
	Flags              byte
	Length             [2]byte
	RequestedProtocols [4]byte
}

type TKIPHeader

type TKIPHeader struct {
	Version  byte
	Reserved byte
	Length   [2]byte
}

TKIPHeader see http://go.microsoft.com/fwlink/?LinkId=90541 section 8

func ConnectionConfirm

func ConnectionConfirm(cr CRTPDU) (TKIPHeader, []byte, error)

Jump to

Keyboard shortcuts

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