Exploit database

GH-ea91ecf629103514d4b348ce44007631

jamf/cve-2020-1206-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-1206

3 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files29
jamf/cve-2020-1206-pocRevision 9e917e593af3

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

ProtoSDK/Sspi/SecurityBuffer.cs

C# · 1,177 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.Runtime.InteropServices;

namespace Microsoft.Protocols.TestTools.StackSdk.Security.Sspi
{
    /// <summary>
    /// The SecBuffer structure describes a buffer allocated by a transport application to pass to a security package.
    /// reference: http://msdn.microsoft.com/en-us/library/aa379814(VS.85).aspx
    /// </summary>
    public class SecurityBuffer
    {
        /// <summary>
        /// Bit flags that indicate the type of buffer.
        /// </summary>
        public SecurityBufferType BufferType;

        /// <summary>
        /// A buffer contains data.
        /// </summary>
        public byte[] Buffer;

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="bufferType">SecBuffer type</param>
        /// <param name="buffer">SecBuffer in bytes.</param>
        public SecurityBuffer(SecurityBufferType bufferType, byte[] buffer)
        {
            this.BufferType = bufferType;
            this.Buffer = buffer;
        }
    }
}