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 files188
jamf/cve-2020-1206-pocRevision 9e917e593af3
Next files →

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

ProtoSDK/MS-FSCC/Messages/FsccErrorPacket.cs

C# · 1,928 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;

namespace Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Fscc
{
    /// <summary>
    /// error packet of fscc, provide a uint status value.
    /// </summary>
    public class FsccErrorPacket : FsccPacket
    {
        #region Properties

        /// <summary>
        /// the error status of fscc packet 
        /// </summary>
        private uint status;

        /// <summary>
        /// the error status of fscc packet 
        /// </summary>
        public uint Status
        {
            get
            {
                return this.status;
            }
            set
            {
                this.status = value;
            }
        }


        /// <summary>
        /// the command of fscc packet 
        /// </summary>
        public override uint Command
        {
            get
            {
                return 0x00;
            }
        }


        #endregion

        #region Constructors

        /// <summary>
        /// default constructor 
        /// </summary>
        public FsccErrorPacket()
            : base()
        {
        }


        #endregion

        #region Marshaling and Unmarshaling Methods

        /// <summary>
        /// marshaling this packet to bytes. 
        /// </summary>
        /// <returns>the bytes of this packet </returns>
        public override byte[] ToBytes()
        {
            return BitConverter.GetBytes(this.status);
        }


        /// <summary>
        /// unmarshaling packet from bytes 
        /// </summary>
        /// <param name = "packetBytes">the bytes of packet </param>
        public override void FromBytes(byte[] packetBytes)
        {
            this.status = BitConverter.ToUInt32(packetBytes, 0);
        }


        #endregion
    }
}