Exploit databaseDownload repository ZIP
GH-88d8bc551618926a04536090300b4292
dungnm24/cve-2020-0796
Sources for CVE-2020-0796
81 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files22
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- Enums.cs
- TS_RFX_BLOCKT.cs
- TS_RFX_CAPS.cs
- TS_RFX_CAPSET.cs
- TS_RFX_CHANNELS.cs
- TS_RFX_CHANNELT.cs
- TS_RFX_CLNT_CAPS_CONTAINER.cs
- TS_RFX_CODEC_CHANNELT.cs
- TS_RFX_CODEC_QUANT.cs
- TS_RFX_CODEC_VERSIONS.cs
- TS_RFX_CODEC_VERSIONT.cs
- TS_RFX_CONTEXT.cs
- TS_RFX_FRAME_BEGIN.cs
- TS_RFX_FRAME_END.cs
- TS_RFX_ICAP.cs
- TS_RFX_RECT.cs
- TS_RFX_REGION.cs
- TS_RFX_SRVR_CAPS_CONTAINER.cs
- TS_RFX_SYNC.cs
- TS_RFX_TILE.cs
- TS_RFX_TILESET.cs
- TypeMarshal.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/ProtoSDK/MS-RDPRFX/Types/TS_RFX_CHANNELS.cs
C# · 1,638 bytes// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Diagnostics.CodeAnalysis;
namespace Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdprfx
{
/// <summary>
/// The TS_RFX_CHANNELS message contains the list of open channels,
/// each of which corresponds to a monitor on the server.
/// The decoder endpoint MUST be able to support channels with different frame dimensions.
/// </summary>
public struct TS_RFX_CHANNELS : IMarshalable
{
/// <summary>
/// The blockType field MUST be set to WBT_CHANNELS (0xCCC2).
/// </summary>
public TS_RFX_BLOCKT BlockT;
/// <summary>
/// Specifies the number of channel data blocks in the channels field.
/// </summary>
public byte numChannels;
/// <summary>
/// A variable-length array of TS_RFX_CHANNELT (section 2.2.2.1.3) structures.
/// </summary>
public TS_RFX_CHANNELT[] channels;
public byte[] ToBytes()
{
System.Collections.Generic.List<byte> dataBuffer = new System.Collections.Generic.List<byte>();
dataBuffer.AddRange(TypeMarshal.ToBytes<ushort>((ushort)(this.BlockT.blockType)));
dataBuffer.AddRange(TypeMarshal.ToBytes<uint>(this.BlockT.blockLen));
dataBuffer.AddRange(TypeMarshal.ToBytes<byte>(this.numChannels));
dataBuffer.AddRange(TypeMarshal.ToBytes<TS_RFX_CHANNELT>(this.channels[0]));
return dataBuffer.ToArray();
}
}
}