Exploit databaseDownload repository ZIP
GH-ea91ecf629103514d4b348ce44007631
jamf/cve-2020-1206-poc
Sources for CVE-2020-1206
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files22
jamf/cve-2020-1206-pocRevision 9e917e593af3
- ↑..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.
ProtoSDK/MS-RDPRFX/Types/TS_RFX_FRAME_BEGIN.cs
C# · 1,822 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_FRAME_BEGIN message indicates the start of a new frame
/// for a specific channel in the encoded stream.
/// </summary>
public struct TS_RFX_FRAME_BEGIN : IMarshalable
{
/// <summary>
/// The blockType field MUST be set to WBT_FRAME_BEGIN (0xCCC4).
/// </summary>
public TS_RFX_CODEC_CHANNELT CodecChannelT;
/// <summary>
/// Specifies the index of the frame in the current video sequence.
/// </summary>
public uint frameIdx;
/// <summary>
/// Specifies the number of TS_RFX_REGION (section 2.2.2.3.3) messages
/// following this TS_RFX_FRAME_BEGIN message.
/// That is, the number of regions in the frame.
/// </summary>
public short numRegions;
public byte[] ToBytes()
{
System.Collections.Generic.List<byte> dataBuffer = new System.Collections.Generic.List<byte>();
dataBuffer.AddRange(TypeMarshal.ToBytes<ushort>((ushort)this.CodecChannelT.blockType));
dataBuffer.AddRange(TypeMarshal.ToBytes<uint>(this.CodecChannelT.blockLen));
dataBuffer.AddRange(TypeMarshal.ToBytes<byte>(this.CodecChannelT.codecId));
dataBuffer.AddRange(TypeMarshal.ToBytes<byte>(this.CodecChannelT.channelId));
dataBuffer.AddRange(TypeMarshal.ToBytes<uint>(this.frameIdx));
dataBuffer.AddRange(TypeMarshal.ToBytes<short>(this.numRegions));
return dataBuffer.ToArray();
}
}
}