licPdu

package
v0.0.0-...-b10d92e Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// sent by server
	LICENSE_REQUEST    = 0x01
	PLATFORM_CHALLENGE = 0x02
	NEW_LICENSE        = 0x03
	UPGRADE_LICENSE    = 0x04

	// sent by client
	LICENSE_INFO                = 0x12
	NEW_LICENSE_REQUEST         = 0x13
	PLATFORM_CHALLENGE_RESPONSE = 0x15

	// Sent by either client or server:
	ERROR_ALERT = 0xff
)
View Source
const (
	LICENSE_PROTOCOL_VERSION_MASK = 0x0f
	EXTENDED_ERROR_MSG_SUPPORTED  = 0x80
)

flags

View Source
const (
	BB_ANY_BLOB                 = 0x0000
	BB_DATA_BLOB                = 0x0001
	BB_RANDOM_BLOB              = 0x0002
	BB_CERTIFICATE_BLOB         = 0x0003
	BB_ERROR_BLOB               = 0x0004
	BB_ENCRYPTED_DATA_BLOB      = 0x0009
	BB_KEY_EXCHG_ALG_BLOB       = 0x000D
	BB_SCOPE_BLOB               = 0x000E
	BB_CLIENT_USER_NAME_BLOB    = 0x000F
	BB_CLIENT_MACHINE_NAME_BLOB = 0x0010
)

WBlobType

View Source
const (
	// Sent by client
	ERR_INVALID_SERVER_CERTIFICATE = 0x00000001
	ERR_NO_LICENSE                 = 0x00000002

	// Sent by server
	ERR_INVALID_SCOPE       = 0x00000004
	ERR_NO_LICENSE_SERVER   = 0x00000006
	STATUS_VALID_CLIENT     = 0x00000007
	ERR_INVALID_CLIENT      = 0x00000008
	ERR_INVALID_PRODUCTID   = 0x0000000B
	ERR_INVALID_MESSAGE_LEN = 0x0000000C

	// Sent by client and server
	ERR_INVALID_MAC = 0x00000003
)

DwErrorCode

View Source
const (
	ST_TOTAL_ABORT          = 0x00000001
	ST_NO_TRANSITION        = 0x00000002
	ST_RESET_PHASE_TO_START = 0x00000003
	ST_RESEND_LAST_MESSAGE  = 0x00000004
)

DwStateTransaction

View Source
const (
	INFO_MOUSE                  = 0x00000001
	INFO_DISABLECTRLALTDEL      = 0x00000002
	INFO_AUTOLOGON              = 0x00000008
	INFO_UNICODE                = 0x00000010
	INFO_MAXIMIZESHELL          = 0x00000020
	INFO_LOGONNOTIFY            = 0x00000040
	INFO_COMPRESSION            = 0x00000080
	INFO_ENABLEWINDOWSKEY       = 0x00000100
	INFO_REMOTECONSOLEAUDIO     = 0x00002000
	INFO_FORCE_ENCRYPTED_CS_PDU = 0x00004000
	INFO_RAIL                   = 0x00008000
	INFO_LOGONERRORS            = 0x00010000
	INFO_MOUSE_HAS_WHEEL        = 0x00020000
	INFO_PASSWORD_IS_SC_PIN     = 0x00040000
	INFO_NOAUDIOPLAYBACK        = 0x00080000
	INFO_USING_SAVED_CREDS      = 0x00100000
	INFO_AUDIOCAPTURE           = 0x00200000
	INFO_VIDEO_DISABLE          = 0x00400000
	INFO_HIDEF_RAIL_SUPPORTED   = 0x02000000
)

Client Info Packet Flags

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInfoPDU

type ClientInfoPDU struct {
	McsSDrq        *mcs.SendDataRequest // MCS Send Data Request
	SecurityHeader *sec.TsSecurityHeader
	InfoPacket     *TsInfoPacket
}

ClientInfoPDU https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/772d618e-b7d6-4cd0-b735-fa08af558f9d

func NewClientInfoPDU

func NewClientInfoPDU(userId uint16, username, password string) *ClientInfoPDU

func (*ClientInfoPDU) Serialize

func (pdu *ClientInfoPDU) Serialize() []byte

func (*ClientInfoPDU) Write

func (pdu *ClientInfoPDU) Write(w io.Writer)

type LicenseValidClientData

type LicenseValidClientData struct {
	Preamble     LicensingPreamble
	ErrorMessage LicensingErrorMessage
}

LicenseValidClientData https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/7e2fe1e0-e793-45b7-983d-af344d9ca327

func (*LicenseValidClientData) Read

func (d *LicenseValidClientData) Read(r io.Reader)

type LicensingBinaryBlob

type LicensingBinaryBlob struct {
	WBlobType uint16
	WBlobLen  uint16
	BlobData  []byte
}

LicensingBinaryBlob https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/0a1c6079-af4d-4742-bb64-fecb8fa6e1a0

type LicensingErrorMessage

type LicensingErrorMessage struct {
	DwErrorCode        uint32
	DwStateTransaction uint32
}

ErrorMessage https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/f18b6c9f-f3d8-4a0e-8398-f9b153233dca

func (*LicensingErrorMessage) Read

func (m *LicensingErrorMessage) Read(r io.Reader)

type LicensingPreamble

type LicensingPreamble struct {
	BMsgType uint8
	Flags    uint8
	WMsgSize uint16 // The size in bytes of the licensing packet (including the size of the preamble).
}

LicensingPreamble https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/73170ca2-5f82-4a2d-9d1b-b439f3d8dadc

func (*LicensingPreamble) Read

func (p *LicensingPreamble) Read(r io.Reader)

type ServerLicensingPDU

type ServerLicensingPDU struct {
	McsSDin                mcs.ReceiveDataResponse
	SecurityHeader         sec.TsSecurityHeader
	ValidClientLicenseData LicenseValidClientData
}

ServerLicensingPDU https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/7d941d0d-d482-41c5-b728-538faa3efb31

func (*ServerLicensingPDU) Read

func (p *ServerLicensingPDU) Read(r io.Reader)

type TsInfoPacket

type TsInfoPacket struct {
	CodePage         uint32
	Flag             uint32
	CbDomain         uint16
	CbUserName       uint16
	CbPassword       uint16
	CbAlternateShell uint16
	CbWorkingDir     uint16
	Domain           []byte
	UserName         []byte
	Password         []byte
	AlternateShell   []byte
	WorkingDir       []byte
	ExtendedInfo     *sec.TsExtendedInfoPacket
}

TsInfoPacket https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/732394f5-e2b5-4ac5-8a0a-35345386b0d1

func (*TsInfoPacket) Write

func (p *TsInfoPacket) Write(w io.Writer)

Jump to

Keyboard shortcuts

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